StyleTextUtils Extension
Hello everyone, Today I’m launching my second extension StyleTextUtils. This extension is used to style the text on the following components
Label
, Button
, Datepicker
, Timepicker
, Checkbox
, Switch
, Textbox
, Radio Button
Blocks
Event raises when any clickable text is clicked. The component
parameter returns the component on which text was clicked, text
parameter returns the text which was clicked
Sets part of the text clickable, color
parameter sets the color of the clickable text, linevisible
parameter specifies whether an underline has to be shown to clickable text
Removes all the formatting applied by this extension
Sets the line height of the component
Sets the custom typeface for the text based on start & end position. The font
parameter specifies the font typeface it has to set for the text.
Adds a bullet point to the text of the component. Radius parameter specifies the radius
of the bullet point, gapsize
parameter sets the distance between the bullet point & the text. The color
parameter sets the color of the bulltet
Gets the text from the component based on it’s start position & end position and blurs it. The value to be blurred needs to be entered in the blur
parameter
Examples
Please Note
- If the Clickable property of label component has been set to true, then the TextClicked event won’t be fired as the whole label will be clicked
- RemoveStyling block even removes any html tag added
FAQS
- Label component already has the clickable property option so what is the use of SetClickable block of the extension?
Ans. The SetClickable block only sets a part of the text clickable whereas the in built clickable property of label sets the whole text as clickable, for example you have an app in which you can tag any user by @username and when the user clicks on @username then the user profile opens. So using the SetClickable block you can make the @username text only clickable instead of the whole text
Download latest version 2.0
io.soham.styletextutils.aix (8.0 KB)
Previous Versions
Version 1.0
Credits
Thank you @iamwsumit for helping me create this extension and thank you @Shreyash for your super Rush