UNPKG

kdf

Version:

KD: a non-document focused UI Framework for web applications.

23 lines (12 loc) 567 B
window.MutationSummary = require '../../../libs/mutation-summary.js' KDCustomHTMLView = require '../../core/customhtmlview' module.exports = class KDListViewBox extends KDCustomHTMLView constructor: (options = {}) -> options.tagName = 'section' super options @observeMutations() @on 'MutationHappened', @bound 'updateProps' getItems: -> @subViews.filter (item)-> item instanceof KDListItemView updateProps: -> @emit 'BoxIsEmptied', @getId() if @getItems().length is 0 # @emit 'HeightChanged', @getElement().clientHeight