This will make sure you can customize both the border and hint color without it doing so automatically.
Added SetBorderColor so the border color of each text field can be changed by inputting their ID and a new color.
Added SetHintColor so the hint color of each text field can be changed by inputting their ID and a new color.
Added SetInput so the text of each text field can be changed by inputting their ID and new text.
Added SetInputColor so the input (text) color of each text field can be changed by inputting their ID and a new color.
Added SetSecondaryColor so the focused border color of each text field can be changed by inputting their ID and a new color.
By using the Configure method, you can still set this property, but it will be extension-wide so you donāt have to change the secondary color with this method every time.
Changes
Renamed Mode property to Theme
Renamed DARK to Dark
Renamed LIGHT to Light
Deletions
Removed TEXT_COLOR from the configuration structure. This is now set for each individual text field upon creation if itās specified. Otherwise it will default to #FFFFFF. Of course as before, this does not have to be removed unless youād like to remove it, but you will have to set this property for each text field upon creation now.
Ahh this is interesting, I mustāve changed something without knowing before I built because it was working. Iāll have it fixed within the next hour.
@progr I have looked into it and it seems to be a problem with the block. When you set the border color as a property upon creating the text field, it works fine. I will still take a look into why it is not working with alternative methods however.
In Create Block i Think there is No Need of Configuration; A Seperate Block for Configuration will be Best.
If there is a Seperate Block for Configuration, then Most Probably there is No Need of All Other Seperate Configuration Blocks.
When i Rest my Mouse Cursor on Create Block, The Yellow Box (Donāt Know What that is Called ) Pops and Says - Method to Create,
As in Method of Create there is also Configuration (For Now (And Maybe in Future Too)), it Must Also Display All the Keys of Configureation.
If you Follow Suggestion2, then Same /this should Apply on that Seperate Configuration Block.
Error /Bug -
Apart from Method to Create & Event for OnInputChanged No Other Block is Working.
Configurations - BOX_CORNER_RADIUS & SECONDARY_COLOR are Not Working.
This is interesting behavior, but the Create method should be able to be called beforehand because default values are set in place.
BOX_CORNER_RADIUS = 12 SECONDARY_COLOR = #1A73E9
The Configure block is there for options that are applied to all text fields, not just one. The configuration argument is used for the separate text fields.
The Configure block will not change anything created before itās execution.
Yes, but what if no one wants to change a color to any other property, but one? Then they just set the property to the current property instead of changing it?
Here are the blocks that are working, that I tested from the five.
SetInput
SetInputColor
Iām not sure about whether SetHintColor works because Iām getting an error, but I havenāt made any changes to that part so it might just be in general.
As many of you might know, I am a contributor to the Dynamic Components extension. I am busy with that right now and itās looking that I will not be able to fix anything outside of the scope of the SetHintColor block unless itās on my part. Please remove the blocks below from your projects before Tuesday if you plan on upgrading.
SetBorderColor
SetSecondaryColor
SetHintColor is unlikely to be removed because itās a simple error that should be easy to fix. Do check back on Monday or early Tuesday morning if itās not for you already, to see if I have updated this list to include SetHintColor!