Sha256: 4bedade2c11fbd2f51326563ee199123013801370209e95c7e0f86cbbb0671c9
Contents?: true
Size: 679 Bytes
Versions: 4
Compression:
Stored size: 679 Bytes
Contents
# This class represent a button to use in **Faalis** views. class Faalis.Button # options: # * **title**: Title of the button # * **icon**: Icon class to use in button # * **classess**: Classes to assign the button element # * **route**: Target route of the button, if any. # * **on_click**: If provided it would have higher priority over **route** # * **permission**: Required permission for user. constructor: (options = {})-> @title = options.title @icon = options.icon @classes = options.classes || "btn btn-sm" @route = options.route @on_click = options.on_click @required_permission = options.permission
Version data entries
4 entries across 4 versions & 1 rubygems