Advertisement
Guest User

Untitled

a guest
Mar 25th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. Now we have
  2. -----------------
  3.  
  4. - base
  5. - form
  6. - danger
  7. - prev, next
  8. - icon, image
  9. - iconButton, imageButton
  10.  
  11. Where:
  12.  
  13. - base, form, danger define color
  14. - the rest define functionality
  15.  
  16. 6.3 Goal
  17. -----------------------
  18.  
  19. Separate css (color) and type (functionality) so that we can have any "typed" buttons with different colors:
  20.  
  21. ~~~
  22. type:"iconButton", css:"webix_primary"
  23. type:"image", css:"webix_danger webix_primary"
  24. ~~~
  25.  
  26. Css:
  27.  
  28. - webix_base (default, alias to webixtype_base)
  29. - webix_danger (alias to webixtype_danger)
  30. - webix_success (green button)
  31. - webix_warning (yellow button)
  32. - webix_primary (makes any prev variation raised)
  33.  
  34. Backward compatibility:
  35.  
  36. - type:"form" is "webix_base webix_primary"
  37. - type:"danger" is "webix_danger webix_primary"
  38.  
  39. Next, prev
  40.  
  41. - Not relevant, we may omit giving extra css for them (styling arrows is sad)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement