shortcuts.js 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913
  1. /*
  2. * This file defines the core framework "shortcuts". These are the modes and states of the
  3. * various components keyed by their xtype.
  4. *
  5. * To add more shortcuts for an xtype to a derived theme, call Ext.theme.addShortcuts in
  6. * a theme-specific file and script tag that file in to that theme's 'theme.html' file.
  7. */
  8. Ext.theme.addShortcuts({
  9. 'tooltip': [{
  10. setup: function(component, ct) {
  11. component.render(ct);
  12. component.showBy(ct);
  13. ct.setHeight(component.getHeight());
  14. ct.el.dom.appendChild(component.el.dom);
  15. component.el.setLeft(0);
  16. component.el.setTop(0);
  17. },
  18. config: {
  19. width: 100,
  20. height: 40,
  21. hide: function(){}
  22. }
  23. }],
  24. 'widget.buttongroup': [
  25. {
  26. folder: 'btn-group',
  27. filename: 'btn-group-{ui}-framed-notitle',
  28. config: {
  29. columns: 2,
  30. defaults: {
  31. scale: 'small'
  32. },
  33. items: [{
  34. xtype:'splitbutton',
  35. text: 'Menu Button',
  36. iconCls: 'add16',
  37. menu: [{text: 'Menu Item 1'}]
  38. },{
  39. xtype:'splitbutton',
  40. text: 'Cut',
  41. iconCls: 'add16',
  42. menu: [{text: 'Cut Menu Item'}]
  43. },{
  44. text: 'Copy',
  45. iconCls: 'add16'
  46. },{
  47. text: 'Paste',
  48. iconCls: 'add16',
  49. menu: [{text: 'Paste Menu Item'}]
  50. },{
  51. text: 'Format',
  52. iconCls: 'add16'
  53. }]
  54. }
  55. },
  56. {
  57. folder: 'btn-group',
  58. filename: 'btn-group-{ui}-framed',
  59. config: {
  60. columns: 2,
  61. title: 'Manifest',
  62. defaults: {
  63. scale: 'small'
  64. },
  65. items: [{
  66. xtype:'splitbutton',
  67. text: 'Menu Button',
  68. iconCls: 'add16',
  69. menu: [{text: 'Menu Item 1'}]
  70. },{
  71. xtype:'splitbutton',
  72. text: 'Cut',
  73. iconCls: 'add16',
  74. menu: [{text: 'Cut Menu Item'}]
  75. },{
  76. text: 'Copy',
  77. iconCls: 'add16'
  78. },{
  79. text: 'Paste',
  80. iconCls: 'add16',
  81. menu: [{text: 'Paste Menu Item'}]
  82. },{
  83. text: 'Format',
  84. iconCls: 'add16'
  85. }]
  86. }
  87. }
  88. ],
  89. 'widget.progressbar': [
  90. {
  91. xtype: 'widget.progressbar',
  92. folder: 'progress',
  93. filename: 'progress-{ui}',
  94. delegate: '.' + Ext.baseCSSPrefix + 'progress-bar',
  95. config: {
  96. width: 100,
  97. value: 1,
  98. animate: false
  99. }
  100. }
  101. ],
  102. 'widget.tabbar': [
  103. {
  104. xtype: 'widget.tabbar',
  105. filename: 'tab-bar-{ui}',
  106. folder: 'tab-bar',
  107. config: {
  108. orientation: 'horizontal',
  109. dock: 'top',
  110. width: 100,
  111. listeners: {
  112. render: function(tabbar) {
  113. tabbar.strip.hide();
  114. }
  115. }
  116. }
  117. },
  118. {
  119. xtype: 'widget.tabbar',
  120. filename: 'tab-bar-{ui}',
  121. folder: 'tab-bar',
  122. config: {
  123. orientation: 'vertical',
  124. dock: 'right',
  125. height: 100,
  126. listeners: {
  127. render: function(tabbar) {
  128. tabbar.strip.hide();
  129. }
  130. }
  131. }
  132. },
  133. {
  134. xtype: 'widget.tabbar',
  135. filename: 'tab-bar-{ui}',
  136. folder: 'tab-bar',
  137. config: {
  138. orientation: 'horizontal',
  139. dock: 'bottom',
  140. width: 100,
  141. listeners: {
  142. render: function(tabbar) {
  143. tabbar.strip.hide();
  144. }
  145. }
  146. }
  147. },
  148. {
  149. xtype: 'widget.tabbar',
  150. filename: 'tab-bar-{ui}',
  151. folder: 'tab-bar',
  152. config: {
  153. orientation: 'vertical',
  154. dock: 'left',
  155. height: 100,
  156. listeners: {
  157. render: function(tabbar) {
  158. tabbar.strip.hide();
  159. }
  160. }
  161. }
  162. }
  163. ],
  164. 'widget.tab': [
  165. {
  166. filename: 'tab-{ui}-top',
  167. config: {
  168. text: 'Normal Top Tab',
  169. closable: false
  170. }
  171. },
  172. {
  173. filename: 'tab-{ui}-top-focus',
  174. config: {
  175. text: 'Focused Top Tab',
  176. cls: Ext.baseCSSPrefix + 'tab-focus',
  177. closable: false
  178. }
  179. },
  180. {
  181. filename: 'tab-{ui}-top-active',
  182. config: {
  183. text: 'Active Top Tab',
  184. active: true,
  185. closable: false
  186. }
  187. },
  188. {
  189. filename: 'tab-{ui}-top-over',
  190. over: true,
  191. config: {
  192. text: 'Over Top Tab',
  193. closable: false
  194. }
  195. },
  196. {
  197. filename: 'tab-{ui}-top-focus-active',
  198. config: {
  199. text: 'Focused Active Top Tab',
  200. active: true,
  201. cls: Ext.baseCSSPrefix + 'tab-focus',
  202. closable: false
  203. }
  204. },
  205. {
  206. filename: 'tab-{ui}-top-focus-over',
  207. over: true,
  208. config: {
  209. text: 'Focused Over Top Tab',
  210. cls: Ext.baseCSSPrefix + 'tab-focus',
  211. closable: false
  212. }
  213. },
  214. {
  215. filename: 'tab-{ui}-top-disabled',
  216. config: {
  217. text: 'Disabled Top Tab',
  218. closable: false,
  219. disabled: true
  220. }
  221. },
  222. {
  223. filename: 'tab-{ui}-right',
  224. config: {
  225. text: 'Normal Right Tab',
  226. tabPosition: 'right',
  227. rotation: 0,
  228. closable: false
  229. }
  230. },
  231. {
  232. filename: 'tab-{ui}-right-focus',
  233. config: {
  234. text: 'Focused Right Tab',
  235. tabPosition: 'right',
  236. rotation: 0,
  237. cls: Ext.baseCSSPrefix + 'tab-focus',
  238. closable: false
  239. }
  240. },
  241. {
  242. filename: 'tab-{ui}-right-active',
  243. config: {
  244. text: 'Active Right Tab',
  245. tabPosition: 'right',
  246. rotation: 0,
  247. active: true,
  248. closable: false
  249. }
  250. },
  251. {
  252. filename: 'tab-{ui}-right-over',
  253. over: true,
  254. config: {
  255. text: 'Over Right Tab',
  256. tabPosition: 'right',
  257. rotation: 0,
  258. closable: false
  259. }
  260. },
  261. {
  262. filename: 'tab-{ui}-right-focus-active',
  263. config: {
  264. text: 'Focused Active Right Tab',
  265. tabPosition: 'right',
  266. rotation: 0,
  267. active: true,
  268. cls: Ext.baseCSSPrefix + 'tab-focus',
  269. closable: false
  270. }
  271. },
  272. {
  273. filename: 'tab-{ui}-right-focus-over',
  274. over: true,
  275. config: {
  276. text: 'Focused Over Right Tab',
  277. tabPosition: 'right',
  278. rotation: 0,
  279. cls: Ext.baseCSSPrefix + 'tab-focus',
  280. closable: false
  281. }
  282. },
  283. {
  284. filename: 'tab-{ui}-right-disabled',
  285. config: {
  286. text: 'Disabled Right Tab',
  287. tabPosition: 'right',
  288. rotation: 0,
  289. closable: false,
  290. disabled: true
  291. }
  292. },
  293. {
  294. filename: 'tab-{ui}-bottom',
  295. config: {
  296. text: 'Normal Bottom Tab',
  297. tabPosition: 'bottom',
  298. rotation: 0,
  299. closable: false
  300. }
  301. },
  302. {
  303. filename: 'tab-{ui}-bottom-focus',
  304. config: {
  305. text: 'Focused Bottom Tab',
  306. tabPosition: 'bottom',
  307. rotation: 0,
  308. cls: Ext.baseCSSPrefix + 'tab-focus',
  309. closable: false
  310. }
  311. },
  312. {
  313. filename: 'tab-{ui}-bottom-active',
  314. config: {
  315. text: 'Active Bottom Tab',
  316. tabPosition: 'bottom',
  317. rotation: 0,
  318. active: true,
  319. closable: false
  320. }
  321. },
  322. {
  323. filename: 'tab-{ui}-bottom-over',
  324. over: true,
  325. config: {
  326. text: 'Over Bottom Tab',
  327. tabPosition: 'bottom',
  328. rotation: 0,
  329. closable: false
  330. }
  331. },
  332. {
  333. filename: 'tab-{ui}-bottom-focus-active',
  334. config: {
  335. text: 'Focused Active Bottom Tab',
  336. tabPosition: 'bottom',
  337. rotation: 0,
  338. active: true,
  339. cls: Ext.baseCSSPrefix + 'tab-focus',
  340. closable: false
  341. }
  342. },
  343. {
  344. filename: 'tab-{ui}-bottom-focus-over',
  345. over: true,
  346. config: {
  347. text: 'Focused Over Bottom Tab',
  348. tabPosition: 'bottom',
  349. rotation: 0,
  350. cls: Ext.baseCSSPrefix + 'tab-focus',
  351. closable: false
  352. }
  353. },
  354. {
  355. filename: 'tab-{ui}-bottom-disabled',
  356. config: {
  357. text: 'Disabled Bottom Tab',
  358. tabPosition: 'bottom',
  359. rotation: 0,
  360. closable: false,
  361. disabled: true
  362. }
  363. },
  364. {
  365. filename: 'tab-{ui}-left',
  366. config: {
  367. text: 'Normal left Tab',
  368. tabPosition: 'left',
  369. rotation: 0,
  370. closable: false
  371. }
  372. },
  373. {
  374. filename: 'tab-{ui}-left-focus',
  375. config: {
  376. text: 'Focused Left Tab',
  377. tabPosition: 'left',
  378. rotation: 0,
  379. cls: Ext.baseCSSPrefix + 'tab-focus',
  380. closable: false
  381. }
  382. },
  383. {
  384. filename: 'tab-{ui}-left-active',
  385. config: {
  386. text: 'Active left Tab',
  387. tabPosition: 'left',
  388. rotation: 0,
  389. active: true,
  390. closable: false
  391. }
  392. },
  393. {
  394. filename: 'tab-{ui}-left-over',
  395. over: true,
  396. config: {
  397. text: 'Over left Tab',
  398. tabPosition: 'left',
  399. rotation: 0,
  400. closable: false
  401. }
  402. },
  403. {
  404. filename: 'tab-{ui}-left-focus-active',
  405. config: {
  406. text: 'Focused Active Left Tab',
  407. tabPosition: 'left',
  408. rotation: 0,
  409. active: true,
  410. cls: Ext.baseCSSPrefix + 'tab-focus',
  411. closable: false
  412. }
  413. },
  414. {
  415. filename: 'tab-{ui}-left-focus-over',
  416. over: true,
  417. config: {
  418. text: 'Focused Over Left Tab',
  419. tabPosition: 'left',
  420. rotation: 0,
  421. cls: Ext.baseCSSPrefix + 'tab-focus',
  422. closable: false
  423. }
  424. },
  425. {
  426. filename: 'tab-{ui}-left-disabled',
  427. config: {
  428. text: 'Disabled left Tab',
  429. tabPosition: 'left',
  430. rotation: 0,
  431. closable: false,
  432. disabled: true
  433. }
  434. }
  435. ],
  436. 'widget.window': [
  437. // Floating
  438. {
  439. filename: 'window-{ui}',
  440. config: {
  441. header: false,
  442. resizable: false,
  443. height: 200,
  444. width: 200
  445. }
  446. },
  447. // window w/header
  448. {
  449. delegate: '.' + Ext.baseCSSPrefix + 'window-header',
  450. config: {
  451. title: 'Top Window',
  452. closable: false,
  453. width: 200,
  454. html: ' ',
  455. headerPosition: 'top'
  456. }
  457. },
  458. {
  459. delegate: '.' + Ext.baseCSSPrefix + 'window-header',
  460. config: {
  461. title: 'Bottom Window',
  462. closable: false,
  463. width: 200,
  464. html: ' ',
  465. headerPosition: 'bottom'
  466. }
  467. },
  468. {
  469. delegate: '.' + Ext.baseCSSPrefix + 'window-header',
  470. config: {
  471. title: 'Left Window',
  472. closable: false,
  473. height: 200,
  474. width: 200,
  475. headerPosition: 'left'
  476. }
  477. },
  478. {
  479. delegate: '.' + Ext.baseCSSPrefix + 'window-header',
  480. config: {
  481. title: 'Right Window',
  482. closable: false,
  483. height: 200,
  484. width: 200,
  485. headerPosition: 'right'
  486. }
  487. },
  488. // collapsed window w/header
  489. {
  490. delegate: '.' + Ext.baseCSSPrefix + 'window-header',
  491. config: {
  492. title: 'Top Collapsed',
  493. collapsed: true,
  494. closable: false,
  495. expandOnShow: false,
  496. width: 200,
  497. headerPosition: 'top'
  498. }
  499. },
  500. {
  501. delegate: '.' + Ext.baseCSSPrefix + 'window-header',
  502. config: {
  503. title: 'Bottom Collapsed',
  504. collapsed: true,
  505. closable: false,
  506. expandOnShow: false,
  507. width: 200,
  508. headerPosition: 'bottom'
  509. }
  510. },
  511. {
  512. delegate: '.' + Ext.baseCSSPrefix + 'window-header',
  513. config: {
  514. title: 'Left Collapsed',
  515. collapsed: true,
  516. closable: false,
  517. expandOnShow: false,
  518. height: 200,
  519. width: 200,
  520. headerPosition: 'left'
  521. }
  522. },
  523. {
  524. delegate: '.' + Ext.baseCSSPrefix + 'window-header',
  525. config: {
  526. title: 'Right Collapsed',
  527. collapsed: true,
  528. closable: false,
  529. expandOnShow: false,
  530. height: 200,
  531. width: 200,
  532. headerPosition: 'right'
  533. }
  534. }
  535. ], // window
  536. 'widget.panel': [
  537. {
  538. config: {
  539. width: 200,
  540. height: 200,
  541. frame: true,
  542. bodyPadding: 20,
  543. html: 'Framed panel'
  544. }
  545. },
  546. // panel w/header
  547. {
  548. delegate: '.' + Ext.baseCSSPrefix + 'panel-header',
  549. config: {
  550. title: 'Top',
  551. width: 200,
  552. html: ' ',
  553. headerPosition: 'top'
  554. }
  555. },
  556. {
  557. delegate: '.' + Ext.baseCSSPrefix + 'panel-header',
  558. config: {
  559. title: 'Bottom',
  560. width: 200,
  561. html: ' ',
  562. headerPosition: 'bottom'
  563. }
  564. },
  565. {
  566. delegate: '.' + Ext.baseCSSPrefix + 'panel-header',
  567. config: {
  568. title: 'Left',
  569. height: 200,
  570. width: 200,
  571. headerPosition: 'left'
  572. }
  573. },
  574. {
  575. delegate: '.' + Ext.baseCSSPrefix + 'panel-header',
  576. config: {
  577. title: 'Right',
  578. height: 200,
  579. width: 200,
  580. headerPosition: 'right'
  581. }
  582. },
  583. // framed panel w/header
  584. {
  585. delegate: '.' + Ext.baseCSSPrefix + 'panel-header',
  586. config: {
  587. title: 'Top Framed',
  588. width: 200,
  589. frame: true,
  590. html: ' ',
  591. headerPosition: 'top'
  592. }
  593. },
  594. {
  595. delegate: '.' + Ext.baseCSSPrefix + 'panel-header',
  596. config: {
  597. title: 'Bottom Framed',
  598. width: 200,
  599. frame: true,
  600. html: ' ',
  601. headerPosition: 'bottom'
  602. }
  603. },
  604. {
  605. delegate: '.' + Ext.baseCSSPrefix + 'panel-header',
  606. config: {
  607. title: 'Left Framed',
  608. height: 200,
  609. width: 200,
  610. frame: true,
  611. headerPosition: 'left'
  612. }
  613. },
  614. {
  615. delegate: '.' + Ext.baseCSSPrefix + 'panel-header',
  616. config: {
  617. title: 'Right Framed',
  618. height: 200,
  619. width: 200,
  620. frame: true,
  621. headerPosition: 'right'
  622. }
  623. },
  624. // collapsed framed panel w/header
  625. {
  626. delegate: '.' + Ext.baseCSSPrefix + 'panel-header',
  627. config: {
  628. title: 'Top Framed/Collapsed',
  629. collapsed: true,
  630. width: 200,
  631. frame: true,
  632. headerPosition: 'top'
  633. }
  634. },
  635. {
  636. delegate: '.' + Ext.baseCSSPrefix + 'panel-header',
  637. config: {
  638. title: 'Bottom Framed/Collapsed',
  639. collapsed: true,
  640. width: 200,
  641. frame: true,
  642. headerPosition: 'bottom'
  643. }
  644. },
  645. {
  646. delegate: '.' + Ext.baseCSSPrefix + 'panel-header',
  647. config: {
  648. title: 'Left Framed/Collapsed',
  649. collapsed: true,
  650. height: 200,
  651. width: 200,
  652. frame: true,
  653. headerPosition: 'left'
  654. }
  655. },
  656. {
  657. delegate: '.' + Ext.baseCSSPrefix + 'panel-header',
  658. config: {
  659. title: 'Right Framed/Collapsed',
  660. collapsed: true,
  661. height: 200,
  662. width: 200,
  663. frame: true,
  664. headerPosition: 'right'
  665. }
  666. }
  667. ],
  668. 'widget.toolbar': [
  669. {
  670. filename: 'toolbar-{ui}',
  671. config: {
  672. width: 200,
  673. items: [{
  674. text: 'test'
  675. }]
  676. }
  677. }
  678. ],
  679. 'widget.button': [
  680. //small button
  681. {
  682. filename: 'btn-{ui}-small',
  683. config: {
  684. scale: 'small',
  685. text: ' ',
  686. width: 100
  687. }
  688. },
  689. {
  690. filename: 'btn-{ui}-small-over',
  691. over: true,
  692. config: {
  693. scale: 'small',
  694. text: ' ',
  695. width: 100
  696. }
  697. },
  698. {
  699. filename: 'btn-{ui}-small-focus',
  700. config: {
  701. scale: 'small',
  702. text: ' ',
  703. width: 100,
  704. cls: Ext.baseCSSPrefix + 'btn-focus'
  705. }
  706. },
  707. {
  708. filename: 'btn-{ui}-small-pressed',
  709. config: {
  710. scale: 'small',
  711. text: ' ',
  712. width: 100,
  713. cls: Ext.baseCSSPrefix + 'btn-pressed'
  714. }
  715. },
  716. {
  717. filename: 'btn-{ui}-small-focus-over',
  718. config: {
  719. scale: 'small',
  720. text: ' ',
  721. width: 100,
  722. cls: Ext.baseCSSPrefix + 'btn-focus ' + Ext.baseCSSPrefix + 'btn-over'
  723. }
  724. },
  725. {
  726. filename: 'btn-{ui}-small-focus-pressed',
  727. config: {
  728. scale: 'small',
  729. text: ' ',
  730. width: 100,
  731. cls: Ext.baseCSSPrefix + 'btn-focus ' + Ext.baseCSSPrefix + 'btn-pressed'
  732. }
  733. },
  734. {
  735. filename: 'btn-{ui}-small-disabled',
  736. config: {
  737. scale: 'small',
  738. text: ' ',
  739. width: 100,
  740. disabled: true
  741. }
  742. },
  743. //medium button
  744. {
  745. filename: 'btn-{ui}-medium',
  746. config: {
  747. scale: 'medium',
  748. text: ' ',
  749. width: 100
  750. }
  751. },
  752. {
  753. filename: 'btn-{ui}-medium-over',
  754. over: true,
  755. config: {
  756. scale: 'medium',
  757. text: ' ',
  758. width: 100
  759. }
  760. },
  761. {
  762. filename: 'btn-{ui}-medium-focus',
  763. config: {
  764. scale: 'medium',
  765. text: ' ',
  766. width: 100,
  767. cls: Ext.baseCSSPrefix + 'btn-focus'
  768. }
  769. },
  770. {
  771. filename: 'btn-{ui}-medium-pressed',
  772. config: {
  773. scale: 'medium',
  774. text: ' ',
  775. width: 100,
  776. cls: Ext.baseCSSPrefix + 'btn-pressed'
  777. }
  778. },
  779. {
  780. filename: 'btn-{ui}-medium-focus-over',
  781. config: {
  782. scale: 'medium',
  783. text: ' ',
  784. width: 100,
  785. cls: Ext.baseCSSPrefix + 'btn-focus ' + Ext.baseCSSPrefix + 'btn-over'
  786. }
  787. },
  788. {
  789. filename: 'btn-{ui}-medium-focus-pressed',
  790. config: {
  791. scale: 'medium',
  792. text: ' ',
  793. width: 100,
  794. cls: Ext.baseCSSPrefix + 'btn-focus ' + Ext.baseCSSPrefix + 'btn-pressed'
  795. }
  796. },
  797. {
  798. filename: 'btn-{ui}-medium-disabled',
  799. config: {
  800. scale: 'medium',
  801. text: ' ',
  802. width: 100,
  803. disabled: true
  804. }
  805. },
  806. //large button
  807. {
  808. filename: 'btn-{ui}-large',
  809. config: {
  810. scale: 'large',
  811. text: ' ',
  812. width: 100
  813. }
  814. },
  815. {
  816. filename: 'btn-{ui}-large-over',
  817. over: true,
  818. config: {
  819. scale: 'large',
  820. text: ' ',
  821. width: 100
  822. }
  823. },
  824. {
  825. filename: 'btn-{ui}-large-focus',
  826. config: {
  827. scale: 'large',
  828. text: ' ',
  829. width: 100,
  830. cls: Ext.baseCSSPrefix + 'btn-focus'
  831. }
  832. },
  833. {
  834. filename: 'btn-{ui}-large-pressed',
  835. config: {
  836. scale: 'large',
  837. text: ' ',
  838. width: 100,
  839. cls: Ext.baseCSSPrefix + 'btn-pressed'
  840. }
  841. },
  842. {
  843. filename: 'btn-{ui}-large-focus-over',
  844. config: {
  845. scale: 'large',
  846. text: ' ',
  847. width: 100,
  848. cls: Ext.baseCSSPrefix + 'btn-focus ' + Ext.baseCSSPrefix + 'btn-over'
  849. }
  850. },
  851. {
  852. filename: 'btn-{ui}-large-focus-pressed',
  853. config: {
  854. scale: 'large',
  855. text: ' ',
  856. width: 100,
  857. cls: Ext.baseCSSPrefix + 'btn-focus ' + Ext.baseCSSPrefix + 'btn-pressed'
  858. }
  859. },
  860. {
  861. filename: 'btn-{ui}-large-disabled',
  862. config: {
  863. scale: 'large',
  864. text: ' ',
  865. width: 100,
  866. disabled: true
  867. }
  868. }
  869. ],
  870. 'widget.roweditorbuttons': [
  871. {
  872. config: {
  873. position: 'bottom',
  874. style: 'position:static',
  875. rowEditor: {
  876. buttonUI: 'default-toolbar',
  877. saveBtnText: 'Update',
  878. cancelBtnText: 'Cancel',
  879. editingPlugin: {
  880. completeEdit: Ext.emptyFn,
  881. cancelEdit: Ext.emptyFn
  882. }
  883. }
  884. }
  885. },
  886. {
  887. config: {
  888. position: 'top',
  889. style: 'position:static',
  890. rowEditor: {
  891. buttonUI: 'default-toolbar',
  892. saveBtnText: 'Update',
  893. cancelBtnText: 'Cancel',
  894. editingPlugin: {
  895. completeEdit: Ext.emptyFn,
  896. cancelEdit: Ext.emptyFn
  897. }
  898. }
  899. }
  900. }
  901. ]
  902. });