angular-ts-manage
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published
  • class descriptor: ####Javascript 
 @Descriptor([
  new BaseParam(BaseValueType.Undefined,'$base',BaseValueProp.Disabled),
  new BaseParam(BaseValueType.Undefined,'$user',BaseValueProp.Input)
],[
  'id','name','description','makat','color','test','date','time','sum','parent','value'
])
class CustomValue 
{
  @BaseDescriptors([
    new BaseParam(BaseValueType.Text,undefined,BaseValueProp.Disabled,'color'),
    new BaseParam(BaseValueType.Custom,'$user',BaseValueProp.Input,'color')
  ])
  public color:string = 'red';

  @BaseDescriptors([
    new BaseParam(BaseValueType.Custom,undefined,BaseValueProp.Disabled,'autocomplete','makat'),
    new BaseParam(BaseValueType.Custom,'$user',BaseValueProp.Input,'autocomplete','makat')
  ])
  public makat:string = undefined;

  @BaseDescriptors([
      new BaseParam(BaseValueType.Text),
      new BaseParam(BaseValueType.Text,'$user',BaseValueProp.Input)
  ])
  public name:string = '';

  @BaseDescriptors([
    new BaseParam(BaseValueType.Boolean)
  ])
  public test:boolean = false;

  @BaseDescriptors([
    new BaseParam(BaseValueType.Custom,undefined,BaseValueProp.Disabled,'array','id,name'),
    new BaseParam(BaseValueType.Custom,'$user',BaseValueProp.Input,'array','id,name')
  ])
  public value:any = [];

  @BaseDescriptors([
    new BaseParam(BaseValueType.Date)
  ])
  public date:Date = new Date();

  public time:Time = { hours: 0,minutes: 1 };
  public sum:number = 0.0;
  public id:number = 0;

  @BaseDescriptors([
    new BaseParam(BaseValueType.Object),
    new BaseParam(BaseValueType.Object,'$user',BaseValueProp.Disabled)
  ])
  public parent:CustomValue = undefined;

  @BaseDescriptors([
    new BaseParam(BaseValueType.Custom,undefined,BaseValueProp.Disabled,'description'),
    new BaseParam(BaseValueType.Custom,'$user',BaseValueProp.Input,'description')
  ])
  public description:string = '';
}

Package Sidebar

Install

npm i angular-ts-manage

Weekly Downloads

1

Version

1.0.3

License

ISC

Unpacked Size

9.62 kB

Total Files

6

Last publish

Collaborators

  • basiliskin