-
Notifications
You must be signed in to change notification settings - Fork 377
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add missing configuration methods to TranslatedText component (#1826)
This PR solves the issue [#1819](#1819) by providing missing configuration methods to the TranslatedText component for RichEditor option. It also allows to pass method parameters to the child components that they can take an effect there. Following methods are now available for TranslatedText component: ```php // For enabled rich editor option only TranslatedText::make('text-editor') ->optionRichtext(true) ->richtextToolbarButtons() // equal to toolbarButtons on RichEditor ->richtextDisableToolbarButtons() // equal to disableToolbarButtons on RichEditor ->richtextDisableAllToolbarButtons() // equal to disableAllToolbarButtons on RichEditor ->richtextFileAttachmentsDirectory() // equal to fileAttachmentsDirectory on RichEditor ->richtextGetUploadedAttachmentUrlUsing() // equal to getUploadedAttachmentUrlUsing on RichEditor ->richtextSaveUploadedFileAttachmentsUsing(); // equal to saveUploadedFileAttachmentsUsing on RichEditor // For text input only TranslatedText::make('text-input') ->tel() ->telRegex() ->email() ->url() ->numeric() ->integer() ->step(); // For both TranslatedText::make('text') ->regex() ->minLength() ->maxLength(); ``` --------- Co-authored-by: Glenn Jacobs <[email protected]>
- Loading branch information
1 parent
fa0dcda
commit 9afbb43
Showing
1 changed file
with
132 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters