This repository was archived by the owner on Dec 11, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change
1
+ module . exports = {
2
+ css : [ "https://cdn.rawgit.com/arschmitz/5a0c0b61d0240c096db5/raw/0d1d52e3c0e732e0f22cecda2f56def937152db2/jquery-ui-1-12.min.css" ] ,
3
+ button : {
4
+ generator : function ( options ) {
5
+ var icon ,
6
+ inline = options . position === "bottom" || options . position === "top" ,
7
+ first = options . position === "left" || options . position === "top" ,
8
+ button = "<button class='ui-button ui-widget ui-corner-all" ;
9
+
10
+ if ( options . position === "none" ) {
11
+ button = button + " ui-button-icon-only" ;
12
+ }
13
+ button = button + "'>" ;
14
+ if ( options . icon ) {
15
+ icon = "<span class='ui-icon ui-icon-" + options . icon ;
16
+ if ( inline ) {
17
+ icon = icon + " ui-icon-display-block" ;
18
+ }
19
+ icon = icon + "'></span>" ;
20
+ button = first ? icon + button : button + icon ;
21
+ }
22
+ return button + "Button</button>" ;
23
+ } ,
24
+ variations : {
25
+ position : [
26
+ "top" ,
27
+ "bottom" ,
28
+ "left" ,
29
+ "right" ,
30
+ "none"
31
+ ] ,
32
+ icon : [
33
+ false ,
34
+ "pencil" ,
35
+ "clock" ,
36
+ "disk" ,
37
+ "mail-closed" ,
38
+ "heart"
39
+ ]
40
+ }
41
+ }
42
+ } ;
You can’t perform that action at this time.
0 commit comments