lov.ts 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * Copyright 2021-2025 Avaiga Private Limited
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
  5. * the License. You may obtain a copy of the License at
  6. *
  7. * http://www.apache.org/licenses/LICENSE-2.0
  8. *
  9. * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
  10. * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
  11. * specific language governing permissions and limitations under the License.
  12. */
  13. import { TaipyBaseProps } from "../components/Taipy/utils";
  14. import { stringIcon } from "./icon";
  15. /**
  16. * An item in a List of Values (LoV).
  17. */
  18. export interface LovItem {
  19. /** The unique identifier of this item. */
  20. id: string;
  21. /** The items label (string and/or icon). */
  22. item: stringIcon;
  23. /** The array of child items. */
  24. children?: LovItem[];
  25. }
  26. export interface MenuProps extends TaipyBaseProps {
  27. label?: string;
  28. width?: string;
  29. onAction?: string;
  30. inactiveIds?: string[];
  31. lov?: LovItem[];
  32. active?: boolean;
  33. selected?: string[];
  34. expanded?: boolean;
  35. }