Aaron Sawyer
08/02/2023, 8:05 PMoalberto
08/02/2023, 9:08 PMoalberto
08/02/2023, 9:10 PMSebastiaan
08/03/2023, 6:44 AMmyuui
or something like that) and publish it on npm, OR you find another library that has the component that you want and see if you can add this to Umbraco.Sebastiaan
08/03/2023, 6:46 AMD_Inventor
08/03/2023, 7:23 AMD_Inventor
08/03/2023, 7:24 AMJacob Overgaard
08/03/2023, 7:42 AMng-on-<event name>
by the way)
I would recommend you to have a look at what @D_Inventor posted here as a great example of doing just that.
NB! If you don't want a fully fledged build system such as Vite and TypeScript, you can also work with Lit and Web Components with plain old JavaScript. All the examples on their docs are available as TS as well as JS: https://lit.dev/docs/Jacob Overgaard
08/03/2023, 7:53 AMcontentResource
. You will have to set up a normal AngularJS controller to inject and interact with this resource. Then in your template, you can iterate the data and set up the table by something like this:
html
<div ng-controller="My.Own.Controller as vm">
<uui-table>
<uui-table-row ng-repeat="row in vm.data track by row.id">
<uui-table-cell>{{ row.id }}</uui-table-cell>
<uui-table-cell>{{ row.name }}</uui-table-cell>
</uui-table-row>
</uui-table>
</div>
Jacob Overgaard
08/03/2023, 7:56 AMpackage.manifest
in the javascript
section and then it will be globally available throughout the backoffice.Aaron Sawyer
08/03/2023, 2:34 PMJacob Overgaard
08/04/2023, 7:04 AM