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.

ntrml.txt 1.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. The NTRML (NeTRunner Markup Language) is a way to define a User Interface built with the NeTRunner framework. NTRML mimics HTML to provide some familiarity to those already familiar with HTML.
  2. Colors are defined with an 8 hexadecimal digits. First 2 are Red, next 2 are Green, next 2 are Blue and the final 2 are Alpha. An Red of FF is bright red. An alpha of FF is opaque.
  3. If a tag is marked positional below, then it supports the following attributes:
  4. You only can use 2 of the following 3 to position and size your component:
  5. height (optional) - height in pixels or percentage
  6. top (optional) - top in pixels or percentage
  7. bottom (optional) - bottom in pixels or percentage
  8. You only can use 2 of the following 3 to position and size your component:
  9. width (optional) - width in pixels or percentage
  10. left (optional) - left in pixels or percentage
  11. right (optional) - right in pixels or percentage
  12. TAGS
  13. body - wraps around everything to provide some default values
  14. body.color - set default text color
  15. body.bgcolor - set default background color
  16. layer - we draw back to front. This gives you a way to order your controls.
  17. img - renders an image
  18. img.name - label for debugging
  19. img.src - filename to load (currently only pnm/pam supported)
  20. img is positional
  21. tabSelector - where to place the tab selector
  22. tabSelector.color - set text color
  23. tabSelector.hover - set hover color
  24. tabSelector is positional
  25. box - renders a box shape
  26. box.color - shape color
  27. box.hover - hover color
  28. box.onclick - functionality if clicked
  29. box is positional
  30. input - an input box control
  31. input.color - text color
  32. input.bgcolor - background color
  33. input.onclick - functionality if clicked
  34. input.fontSize - font size in pixels
  35. input is positional
  36. font - renders text
  37. font.src - font to use (ttf supported)
  38. font.family - will eventually support web-safe fonts
  39. font.size - text size in pixels
  40. font.color - set default text color
  41. font.bgcolor - set default background color
  42. font is positional