1.7 stuff
The master branch was reverted to 1.7 because it was very unstable (bugs and stuff that wasn't mentioned on the documentation page yet) - features will come back with 2.0 - fixed debug window - fixed flexbox not sending drag events to it's children - small docs updates for 1.7 - removed the examples because the are outdated
This commit is contained in:
28
docs/objects/Textfield/removeRule.md
Normal file
28
docs/objects/Textfield/removeRule.md
Normal file
@@ -0,0 +1,28 @@
|
||||
## removeRule
|
||||
|
||||
### Description
|
||||
|
||||
Removes an existing rule for special coloring in a Textfield object. This allows you to remove the coloring applied to text matching a specific pattern.
|
||||
|
||||
### Parameteres
|
||||
|
||||
1. `string` pattern - The Lua pattern used to match the text for which the rule was applied.
|
||||
|
||||
### Returns
|
||||
|
||||
1. `object` The object in use
|
||||
|
||||
### Usage
|
||||
|
||||
* Removes the rule for coloring all numbers in a Textfield object
|
||||
|
||||
```lua
|
||||
local basalt = require("basalt")
|
||||
|
||||
local mainFrame = basalt.createFrame()
|
||||
local aTextfield = mainFrame:addTextfield()
|
||||
|
||||
aTextfield:removeRule("%d") -- Removes the rule for coloring numbers
|
||||
|
||||
basalt.autoUpdate()
|
||||
```
|
||||
Reference in New Issue
Block a user