how hide button work in angular js....? [closed] - angularjs

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
Actually I want to hide my navigation bar by clicking on hide button.
there are two buttons 1st one hide and another is show.. when I click on hide it should be hide my navigation bar and vice versa.

You can use the flag variable in the controller and use it on html with ng-show.
Add a function in the controller to set the true/false and invoke it when user will click on button.

Related

How to add help button at the top bottom in the antd modal [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 days ago.
Improve this question
I tried to add help button at the top bottom in the modal but I couldn't find the answer.
I tried to customize the header of the modal and I excepted to add button at the top bottom.
What do you want to achieve? Add a button in the header? You can just do something like this custom header

Need help in creating a selectable Card React component [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I am trying to create a selectable Card component, meanwhile when I click the button the border changes to all the elements.. I need a one selection at the time, so when I select the first card, the second and third get no border around.
here is the code: https://codesandbox.io/s/optimistic-mcnulty-4w15m?file=/src/App.js
I have fixed your code. You can check it now on
https://codesandbox.io/s/angry-heyrovsky-0gwqp?file=/src/App.js

How can I actualize dynamic UI rendering on react through the radio buttons? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
Good day all,
I have two independent react components and I want to be able to render each by clicking on either radio buttons. How do I go about linking the radio buttons to their respective components? Thank you!!
You can use react-router to do that.
you can use react state. if you're using hooks you can do
// defaulting this to radioOne but can be anything
const [radioName, setRadioName] = useState('radioOne')
// then build a radio button and attach onClick event
<button onPress={() => setRadioName('radioTwo'}>Button Name </button>
then you can build another button for the other radio (or however many you have)
then build some rendering logic or whatever you want to based off that

In ReactJS Can I 'duplicate' the Draggable item so I'm dragging a clone and the original stays in the same place? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I Want to duplicate the draggable item. So when I drag the item it should be stay in the original place. i.e I want to clone that item without remove from its original place.
Please Letting me know if you have any idea about this.
Thanks. Regards
Pankaj

ng-if or ng-show/hide, which one to use [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
i know that:
The ng-if directive removes the content from the page and ng-show/ng-hide
uses the CSS display property to hide content.
but what i want to understand is: given i am dealing with a simple form - which one should i use? and given that i am dealing with large data / tables - which one should i use?
given: ng-required needs same condition as ng-show, else the form validation suffers and ng-if has no such issue, is it best to use ng-if??
use ng-if... you wont have to do addition manipulation to get the validation messages for ng-hide element...
if you use ng-hide then hidden messages would still be validated

Resources