jupyter-vuetify
Version:
Jupyter widgets based on vuetify UI components
41 lines (37 loc) • 1.56 kB
JavaScript
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
import { VuetifyWidgetModel } from './VuetifyWidget';
export class ListModel extends VuetifyWidgetModel {
defaults() {
return _objectSpread({}, super.defaults(), {
_model_name: 'ListModel',
color: null,
dark: null,
dense: null,
disabled: null,
elevation: undefined,
expand: null,
flat: null,
height: undefined,
light: null,
max_height: undefined,
max_width: undefined,
min_height: undefined,
min_width: undefined,
nav: null,
rounded: null,
shaped: null,
subheader: null,
tag: null,
three_line: null,
tile: null,
two_line: null,
width: undefined
});
}
getVueTag() {
// eslint-disable-line class-methods-use-this
return 'v-list';
}
}
ListModel.serializers = _objectSpread({}, VuetifyWidgetModel.serializers);