import ShakeFormComponent from './ShakeFormComponent'; /** * Represents Shake form Title input. */ class ShakeTitle extends ShakeFormComponent { /** * Determines component key. * @type {string} string value */ key: string; /** * Determines component label. * @type {string | null} string value */ label: string | null; /** * Determines native resource name to load as a label. * @type {string | null} native resource name */ labelRes: string | null = null; /** * Determines initial input value. * @type {string} string value */ initialValue: string = ''; /** * Determines if this field is required to submit form. * @type {boolean} true if required, otherwise false */ required: boolean = false; constructor( key: string, label: string, initialValue: string = '', required: boolean = false ) { super('title'); this.key = key; this.label = label; this.initialValue = initialValue; this.required = required; } } export default ShakeTitle;