Ciao,
i have some descriptions and i need to setup autofocus to a specific description when i
open a form.
I don't found any description property for setup it.
I create for MADescription
beAutofocus
self propertyAt: #autofocus put: true
isAutofocus
^ self propertyAt: #autofocus ifAbsent: [ false ]
and for MADescriptionComponent
isAutofocus
^ self magritteDescription isAutofocus
And for MATextInputComponent i change the:
renderInputOn: html
self isAutofocus
ifTrue:[html textInput
id: self labelId;
autofocus;
on: #string of: self]
ifFalse:[ html textInput
id: self labelId;
on: #string of: self]
Now I wonder if it is a good solution ?
Because i need to change some rendering for other components ( MATextAreaComponent -
MASelectListComponent ecc.. ecc )
Any considerations are welcome.
Thanks,
Dario