jupyter-vuetify
Version:
Jupyter widgets based on vuetify UI components
53 lines (49 loc) • 1.51 kB
JavaScript
import { VuetifyWidgetModel } from './VuetifyWidget';
export class SwitchModel extends VuetifyWidgetModel {
defaults() {
return {
...super.defaults(),
...{
_model_name: 'SwitchModel',
append_icon: null,
background_color: null,
color: null,
dark: null,
dense: null,
disabled: null,
error: null,
error_count: undefined,
error_messages: undefined,
false_value: null,
flat: null,
height: undefined,
hide_details: undefined,
hint: null,
id: null,
input_value: null,
inset: null,
label: null,
light: null,
loading: undefined,
messages: undefined,
multiple: null,
persistent_hint: null,
prepend_icon: null,
readonly: null,
ripple: undefined,
rules: null,
success: null,
success_messages: undefined,
true_value: null,
validate_on_blur: null,
value: null,
},
};
}
getVueTag() { // eslint-disable-line class-methods-use-this
return 'v-switch';
}
}
SwitchModel.serializers = {
...VuetifyWidgetModel.serializers,
};