File

src/app/models/params/param.ts

Constructor

constructor(param: any)

Methods

onChange
onChange()
Returns: void

Properties

Public callBack
callBack: () => void
Public className
className: string
Default value: Param
Public config
config: boolean
Public defaultValue
defaultValue: any
Public destination
destination: string
Public dynamic
dynamic: boolean
Default value: false
Public exercices
exercices: boolean
Default value: false
Public hidden
hidden: boolean
Default value: false
Public label
label: string
Public name
name: string
Public selectionList
selectionList: any
Public tooltip
tooltip: string
Public value
value: any
enum Destination {
	PARAM = "CabriParam",
	VARIABLE = "CabriVariable"
}

export enum NombreAutrementDisplayMode {
	collection = "collection",
	letters = "letters",
	fingers = "fingers",
	coins = "coins",
	dice = "dice"
}
export class Param {
	public className = "Param";
	public exercices = false;
	public defaultValue: any;
	public name: string;
	public label: string;
	public value: any;
	public callBack?: () => void;
	public hidden = false;
	public dynamic = false;
	public destination: string;
	public tooltip: string;
	public selectionList: any;
	public config: boolean;

	constructor(param) {
		this.name = param.name;
		this.defaultValue = param.defaultValue;
		this.exercices = param.exercices;
		this.label = param.label;
		this.value = param.value;
		this.hidden = param.hidden;
		this.dynamic = param.dynamic;
		this.destination = param.destination;
		this.tooltip = param.tooltip;
		this.selectionList = param.selectionList;
		this.config = param.config;
	}

	onChange() {
		if (this.callBack) {
			this.callBack();
		}
	}
}

results matching ""

    No results matching ""