Skip to content
Discussion options

You must be logged in to vote

This tablefield example, prepopulates the table with an expression. The expression could of course be reading a file, grabbing rest or use dbConfig and query to query a database

  - type: table
    name: member
    label: Add club members
    required: true
    expression: |
        [{firstname: "ansible",lastname: "foobar", age: 49, food: "veggies", paid: true}]
    tableFields:
      - name: firstname
        label: First Name
        type: text
        required: true
        default: ""
        minLength: 2
        regex:
          expression: ^[a-zA-Z]*$
          description: Must be normal characters
        icon: user
      - name: lastname
        label: Last Name
        type: text

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@astlaurent
Comment options

@astlaurent
Comment options

@ansibleguy76
Comment options

Answer selected by ansibleguy76
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants