@triptyk/ember-export-menu

0.0.39 • Public • Published

tpk-ember-export-menu

This addon will give you a menu in tailwindCSS. This menu ease the export as csv throught frontend thanks to checkboxes letting you toggling fields and a rust software turning an array in a CSV.

Compatibility

TODO

Installation

ember install @triptyk/ember-export-menu

OR

pnpm add -D @triptyk/ember-export-menu

Usage

Arguments

Integration example

<Ui::ExportMenu @entities={{
	(hash user=(hash 
		fields=(array "username") 
		relations=(array "articles")
	))
}} as |components|>
	<components.Select as |S|>
		<S.Button as |selected|>
			{{selected}}
		</S.Button>
		<S.Options as |Options|>
			<Options as |option|>
				{{option.option}}
			</Options>
		</S.Options>
	</components.Select>
	<components.OptionalList />
	<components.ExportButton />
</Ui::ExportMenu>

Controller .ts/.js

@tracked value = '';

@action
setValue(value: string | number) {
  this.value = value;
}

Contributing

See the Contributing guide for details. You can also contact info@triptyk for more informations on how contributing on this project.

License

This project is licensed under the MIT License.

Package Sidebar

Install

npm i @triptyk/ember-export-menu

Weekly Downloads

45

Version

0.0.39

License

MIT

Unpacked Size

30.3 kB

Total Files

32

Last publish

Collaborators

  • vesass
  • dramixdw
  • remadex
  • tcdp
  • amauryd