Conversation
|
Ok, this is fine, but this will need to be applied to every backend or it will break... I wonder if it makes sense to create a class for this (or typedef, or whatever), so that it doesn't have to be updated all the time. For example, previously, i had I wonder if at this stage it makes sense to to the same for non-style properties (like |
|
Maybe just have something like class TextAreaDefaultReadOnlyBehaviour extends Behaviour {
public override function set(value:Variant) {
var textArea:TextArea = cast _component;
textArea._readOnly = value;
}
public override function get():Variant {
var textArea:TextArea = cast _component;
return textArea._readOnly;
}
}If the corresponding implementation can't use it anyway. Maybe with some kind of warning. |
|
But some may be able to use it, and other props might come up later, meaning we have to change 9 backends again (or maybe more by that time)... I feel like the safest option is to have something like: class TextProperties {
public var wrap:Null<Bool>
public var readOnly:Null<Bool>
// etc etc
}Then in each backend we only need to expose an |
|
Actually, i might have misunderstood this a little. Leave it with me, ill come back with fresh eyes tomorrow. ;) |
|
I just noticed the class |
No description provided.