luda
Version:
A library helps to build cross-framework UI components.
47 lines (31 loc) • 792 B
text/coffeescript
import '../kernel/index.coffee'
import '../mixins/tabable.coffee'
luda.component 'tab'
.protect
cls:
tabable:
active: 'tab-pane-active'
indicatorActive: 'btn-active'
data:
tabable:
interruption: 'data-tab_interruption'
evt:
tabable:
activate: 'luda:tab:activate'
activated: 'luda:tab:activated'
deactivate: 'luda:tab:deactivate'
deactivated: 'luda:tab:deactivated'
selector:
tabable:
targets: '.tab-pane'
indicators: '.tab-indicators .btn'
.include luda.mixin('tabable').alias(
activate: 'tabableActivate'
)
.protect luda.mixin('tabable').all()
.help
find: ->
create: ->
destroy: ->
watch: ->
listen: ->