How to initialise a model property

Hi All ,

I am developing a textbox webcomponent . There is an input type spec property . now it is showing three values - "default , “text” , “password” . I want it to directly set to “text” when dropping the component . how can I do this ? . Please provide some suggestions .

From Specification (.spec file) - Example section:

"horizontalAlignment": { "type": "int", "tags": { "scope": "design" }, "values": [{ "LEFT": 2 }, { "CENTER": 0 }, { "RIGHT": 4 }], "default": -1 },

Yes I got that but how can “left” text be displayed on default dropping of webcomponent ? . There should be no default .

What do you mean there should be no default but “left” should be displayed on default.
Do you mean something like:

"horizontalAlignment": { "type": "int", "tags": { "scope": "design" }, "values": [{ "LEFT": 2 }, { "CENTER": 0 }, { "RIGHT": 4 }], "initialValue": 2 }

Thanks for your reply . it is working now.