import { IconModel } from '../icon/icon.model'; /** * Fab model provide model data for main fab properties. *
{
* icon: null,
* label: 'I'm trigger button tooltip',
* labelPosition: 'above',
* display: true,
* disabled: false,
* }
*/
export class FabButtonModel {
/**
* It is icon for Fab trigger/action buttons based on IconModel. Optional, but for trigger button must be set in file for Fab SETTINGS.
*/
icon?: IconModel;
/**
* It is text for Fab trigger/action buttons tooltips. Optional.
*/
label?: string;
/**
* It is position of those tooltips. Optional, but can be set in default SETTINGS or will take Angular Material default.
*/
labelPosition?: string;
/**
* It is property to hide/show Fab buttons. Optional.
*/
display?: boolean;
/**
* It is property to anable/disable Fab buttons. Optional.
*/
disabled?: boolean;
/**
* It is icon constructor, which take string values from Fab Component and create FabButton object.
*/
constructor(values: Object = {}) {
Object.assign(this, values);
}
}