-
Notifications
You must be signed in to change notification settings - Fork 255
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
Accessing components(widgets) in a central block #296
Comments
Here is my solution ,
and in my component added function
|
I am aware that this is not complete implementation but need to know if I am on the right way ..? |
Hey @atamer I don't understand why it cannot be implemented via events ? |
Hi @sbellity , firstly what I want to implement is a declarative component set ,( accordion , data table , autocomplete etc..) and make users write no or minimal JavaScript while using components , I want to make components interactions via their custom attributes , In this sample I can also use events however asyn calls can turn my implementation more complex , for example when I need an input value , firstly I need do fire an event to all components and then listen if any event with value returns.. |
Got it ! Don't know if it covers exactly what you need... but it should be a start. I'd love to talk more about it, as it's a great use case for aura... and it would be great to have a 'standard' way to do it provided as an 'offical' extension |
user-interaction part is very cool , but I think it is not covering what I need,
here i want to also set onreturnupdate submiturl and onsubmit here is component1
when response returns as JSON object I set the prop1 value of JSON object to input1 component via its prop1 attribute, |
@sbellity After all ,I am working in a big company(~500 developers) and we need a cross-platform(desktop, tablet ) rapid development framework , Most of the component usages are standart so once these component sets are created, Users dont have to write extra javascript or dive into components inner html. |
I understand that , accession widgets from outside is not used and event pub-sub model is advised however I need to access all started widgets in a central block ,
Here is my scenario , I have a component for button as below and when this button is clicked I need to check all active components with name componentid and then call anyprop method or property of that component,
The text was updated successfully, but these errors were encountered: