-
Notifications
You must be signed in to change notification settings - Fork 594
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Text Editors - Custom Action Buttons #7290
Comments
Button locations aside, it would be an interesting feature to actually implement whether the button should be floating or fixed instead (or others). In fact, many inputs are usually "linked" to the text box itself (like bootstrap's input groups https://getbootstrap.com/docs/4.0/components/input-group/), while some others have the floating button inside the text box (like the one in the devextreme datepicker), so it would be useful to be able to handle both the scenarios. That aside, adding the button group support as well would be awesome, I don't think it should be a great deal since it has many common behaviors with the button widget. |
The proposed solution sounds nice. How would one add an image here instead of button? Would this be a disabled button with icon specified? |
@rprimora Sounds like it supports the |
Additional suggestion: for angular-like frameworks, I would suggest you to provide the |
Hi guys, |
FYI, @MikeVitik |
@churkin The thing is, you can only show final amount of controls inside every control as I think you already know there in DevExpress since you guys have a long tradition of building user controls. Where is this line drawn? Easiest would be as @briosheje said - give possibility of a template. This is easiest(I think) but it is usable only in so many scenarios. For instance, usable controls inside text input would be:
It would be ridiculous to put, lets say, grid. Or list... If you give us an option to specify our own button sooner or later a demand for check box or radio button will be made :) |
@rprimora thank you for your feedback. This makes sense. Although I cannot promise that we'll add this functionality to the upcoming release (as we're now polishing the current implementation), we'll definitely consider it for further development. |
It is not clear yet -- will it be possible to show / hide that buttons dynamically without modifying all buttons set? |
Yes, you can use either framework-specific configuration components, or the textBoxInstance.getButton("customButton1").option("visible", false); |
That's a big big update for me. Will be included on the 19.1 or we can expect it as update to the 18.x series ? |
@george-kar I think this will be included in v 19.1 since it's labeled 19.1 (check the labels above). Also, you may check this: https://js.devexpress.com/Roadmap/ |
Hi @george-kar, |
@alexander-kotov-dx since we're on this argument, is there any ETA for the 19.1 release? I'm planning some changes on a devexpress-based framework, but since many tasks will be easier to solve with the 19.1 components, I was wondering whether I should wait a bit more (more or less than a month?) to start complex implementations. |
@alexander-kotov-dx @briosheje same here. I have some changes and I need to find complex solutions. Should I wait for 19.1? How long it will take to go out? |
We greatly appreciate your interest in this functionality. At the moment, we concentrate our forces on its realization. However, I'm not able to provide you with any promises or estimates. We will do our best to show you the base functionality as soon as it is implemented. I'll update this issue when the testing samples are ready. |
Hello, |
@alexander-kotov-dx thanks for the feedback. Personally, from the above sandboxes, I think it's a very great addition to the components set even without the predefined buttons customization feature. The usage of this feature is extremely wide to me and makes it extremely easy to enrich the current layouts. |
@churkin, hello! There is a typo in dxSelectBox demo, it should be 'dropDown' instead of 'dropdown'. Also clicking button inside dxSelectBox fires 'Opened' event. |
Hello @Bykiev We created the discussion page to show our plans and receive customer feedback, but some details have been corrected during the implementation. I have updated the main article to show more actual decisions. |
Thank you to everybody who gave us feedback on this feature. It's available in the v19.1 release. I'm closing this thread. In the case of bugs or questions, feel free to create new GitHub issues or tickets in our Support Center. |
The Problem
DevExtreme editors do not support custom action buttons out of the box, and it takes a lot of time and resources to implement this capability.
The Proposed Solution
We plan to add a
buttons
option to each DevExtreme editor. It will accept an array of objects that configure predefined and custom buttons. Each object will have the following structure:Predefined buttons can be declared using their names (
dropDown
,clear
,spins
) instead of configuration objects (see an example below).In addition, each editor will have the
getButton(name)
that gets the instance of a predefined or custom button by name.Add a custom button
Add a custom button before the input field
Insert a custom button between two predefined buttons
Configure a predefined button
Try it
Live Sandbox
jQuery
Angular
We Need Your Feedback
Take a Quick Poll
Do you find the capability to add custom buttons to DevExtreme editors helpful?
Get Notified of Updates
Subscribe to this thread or to our Facebook and Twitter accounts for updates on this topic.
Related issues
#6044
The text was updated successfully, but these errors were encountered: