One more thing: http://svn.openlaszlo.org/openlaszlo/trunk/lps/components/mixins/cssfonts.lzx
is probably the most complete/complex example of defining a new "presentation type" (look for the <type> tag) that describes a very complex css style and how it is applied to an attribute. Sorry not to be able to provide more info, but that example should be instructive to follow. Feel free to ask questions. On 2013-04-16, at 18:12, Raju Bitter <[email protected]> wrote: > Thanks, Tucker. > > I did some more testing: it's actually the attribute's > setter method which is being called with a string value when I use an > inline attribute value. In case of a value set through CSS, an > instance of the new type is created on the fly and passed into the > setter. > > The only question left: Why isn't it possible to test for the class > using the 'is', e.g. > > if (value is lz.MyType) > > for this type definition: > > class MyType { > var _value; > function MyType(val) { > Debug.info('MyTpe constructor: value=', val); > this._value = "processed value: " + val; > } > function convertToString() { > return _value; > } > } > lz.MyType = MyType; > > I've attached the source of my small test app for anyone else interested. > > Thanks, Raju > <types-css.lzx>
smime.p7s
Description: S/MIME cryptographic signature
