AngularJS multiple directives - angularjs

Ok, I'm being studying AngularJS for about a week now and I'm being able to make several mocks and small tests. I decided to try something deeper and build something close to a real application using AngularJS. Please take a look on the plunker: http://plnkr.co/edit/UX6tmI5zYQ70cTnfzaG0?p=preview
My goal: There will be a treeview on the left column, a list of products in the center column, which is a list of items of a directive and product edit directive in the right column, something close to Microsoft Outlook. I'm being able to list the products in the center column, ok. In each item of listed in the center column, there is a link and what I want is clicking on this link will edit the product clicked in the right column. But how should I do it?
Thanks in advance!

Related

How to dynamically add a new form step to react multi-page form for each selected item on the first page?

I need a bit of direction. I'm working on an application with React, Typescript, and Material UI. I've created a simple modal. The first page contains an MUI DataGrid with checkSelection enabled. The User can select as many options as appear on the table.
Now, for each selection, the User will then have a new form step to complete. So, if the User selects 5 items from the table, they will then see 5 corresponding steps. The form steps are tied to the selection. So, if the first selection is a menu item, for example, then the next step in the form will be about that menu item, with fields to add to that item.
I've been searching for a similar solution and haven't found one. I'm hoping that someone can point me in the right direction or has some sources they can recommend.
Much appreciated.

React Js Autocomplete Multi select example

I'm pretty new to React Js, I have a requirement for building AutoComplete Multiselect dropdown.
Despite looking around for lot of examples,
I was suggested not use any third party libraries. And pretty
clueless how to start and proceed further.
My requirements are
Have an input text box for typing names.
Display sugggested name with checkbox.
Upon checking the names, they must be display in an with an 'X' symbol(remove item)
If I uncheck the name from the multiselect dropdown, it must be removed from the li.
If I Click the 'X' it should be removed from the li and uncheck the item from dropdown list.
And lastly , I need to display the selected items in the input fields like
I've been trying to implement this functionality but figure out how.
Can anyone please provide some reference and any guidance in implementing this functionality or any examples. It would be a great help.
Thanks
I'm not sure why the recommendation against third party libraries. These component can get complicated fast.
I recommend you use a third party. Don't reinvent the wheel!
Something like https://github.com/JedWatson/react-select will do what you want. It has been around for years and has over 300 contributors and 2 million weekly downloads.

Display Json tree Boootstrap

I am new to angular js , I have to display JSON data (can be nested to any level)in tree structure whchi should expand and collapse on button click ,I have tried various npm plugins but not a satisfied with any of those ,
So can anybody suggest me some good solution for this
Thanks in advance
If you want to go with plugins, then angular-ui-tree is the best one.
Else you can come up with your own logic of iterating the nodes with check in record array, if its there come up with caret and give the control to hide and show the rows of the respective parent.

WPF MVVM Filter Bubbles

I'm not sure if bubbles is the proper terminology, but this what I am trying to do...
I have a list of clients. The user can click a filter button and a filter panel slides down. The user chooses the filters they want and clicks a little green checkbox to set the filter. (Or a red circle with line through it, to cancel.) Once they set the filter, the filter panel slides out of the view.
I'd like the user to see a series of small filter "bubbles" at the top the list, showing the filters they have selected. Each bubble would have a little 'x' button they could click to cancel that particular filter. I've seen this on many web sites where you can filter down products lists, for instance.
So my questions are:
Is there a proper terminology for this? I've searched on filter bubbles and
breadcrumbs, but I'm not getting anything.
Is there an established MVVM friendly coding pattern, or control for this? I have some ideas, but I don't want to reinvent the wheel, if I don't have to.
Thanks for any insight.
J
In Angular Material design there are Chips (scroll down to see an example with the 'x' to remove a chip).
And there seems to be an implementaion of the material design in XAML which is also available as a NuGet package:
http://materialdesigninxaml.net/
It does implement chips, but the demo pictures don't show it. A simple search on the github page for 'chips' does show that they are present:
https://github.com/ButchersBoy/MaterialDesignInXamlToolkit/search?utf8=%E2%9C%93&q=chips&type=

How to programmatically select a row in Ui.grid angularJs?

I have an issue let me put it simple in my plunker example I want to know why is my $scope.revertSelection() function not working.
http://plnkr.co/edit/3KXrUuCsSACuhefmyzxN?p=info
Steps:
Sort right hand grid by Name(descending order)
Select 3-4 rows randomly
Click 'Copy' button all selected rows are copied into $scope.retainSelection
Sort right hand grid by Name(Ascending order)
Click 'Revert' button (this is not working)
I am expecting all the rows previously selected in step 2) to be selected back which is not happening :-( please help me with the issue.
I googled but could not find any docs of gridApi.selection to look for other methods to fulfill my requirement.
Note: I am using Ui.grid not ng-grid
I should use...
$scope.gridApi.grid.modifyRows($scope.gridOptions.data);
$scope.gridApi.selection.selectRow($scope.gridOptions.data[i]);
...instead of...
$scope.gridApi.selection.selectRow(i);
My friend gave link to docs.

Resources