On 19 May 2013 22:01, Denis Kudriashov <dionisiydk@gmail.com> wrote:
Hello.
New TxText version 0.8 is ready:
- editor stuff extracted to separate packages TxText-Editor and TxTextTests-Editor - edit decorators implemented:
TxNoneEditDecorator- basic editing then maybe it should be named as basiceditdecorator?
TxMaskedEditDecorator- input masked values like phone numbers TxInsertModeEditDecorator - input with "insert mode" where any new character replace next one. insert mode is actually opposite - inserts when you type. replace mode is replaces when you type.
TxSmartCharsEditDecorator- input smart characters like ()[]{} TxSingleLineEditDecorator - general way to decorate editing with simple decoration format. TxSmartNumbersDecorationFormat is example. It transform text with number format like: '10 000 000' or '10'000'000'.
btw, can you wrap decorators on top of each other i.e. Masked-SimgleLine so i could have a single-line editor for entering only a phone number? also, going ahead.. how easy/hard would be to implement a password input field, when model contains what user types, but display all *** chars?
According methods were added to TxTextMorph:
#editDecorator: - set specific edit decorator (TxNoneEditDecorator by default) #inputContents - returns "native" value (undecorated). #displayedContents - returns raw text model asString
See new examples on TxTextMorph class side.
Best regards, Denis
-- Best regards, Igor Stasenko.