not really known
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
1.4 KiB

  1. /**
  2. Description to make fittable kinds available in Ares.
  3. */
  4. Palette.model.push(
  5. {name: "fittable", items: [
  6. {name: "FittableRows", title: "Vertical stacked layout", icon: "package_new.png", stars: 4.5, version: 2.0, blurb: "Stack of vertical rows, one of which can be made to fit.",
  7. inline: {kind: "FittableRows", style: "height: 80px; position: relative;", padding: 4, components: [
  8. {style: "background-color: lightblue; border: 1px dotted blue; height: 15px;"},
  9. {style: "background-color: lightblue; border: 1px dotted blue;", fit: true},
  10. {style: "background-color: lightblue; border: 1px dotted blue; height: 15px;"}
  11. ]},
  12. config: {content: "$name", isContainer: true, kind: "FittableRows", padding: 10, margin: 10}
  13. },
  14. {name: "FittableColumns", title: "Horizontal stacked layout", icon: "package_new.png", stars: 4.5, version: 2.0, blurb: "Stack of horizontal columns, one of which can be made to fit.",
  15. inline: {kind: "FittableColumns", style: "height: 60px; position: relative;", padding: 4, components: [
  16. {style: "background-color: lightblue; border: 1px dotted blue; width: 20px;"},
  17. {style: "background-color: lightblue; border: 1px dotted blue;", fit: true},
  18. {style: "background-color: lightblue; border: 1px dotted blue; width: 20px;"}
  19. ]},
  20. config: {content: "$name", isContainer: true, kind: "FittableColumns", padding: 10, margin: 10}
  21. }
  22. ]}
  23. );