Skip to content

:setup-children for nested groups? #291

Closed Answered by tarsius
mekeor asked this question in Q&A
Discussion options

You must be logged in to vote
(transient-define-prefix example-dynamic ()
  [:class transient-columns
   :setup-children
   (lambda (_)
     (transient-parse-suffixes
      'example-dynamic
      '(["Left column"
         ("d" "d" transient-echo-arguments :transient t)
         ("f" "f" transient-echo-arguments :transient t)]
        ["Right column"
         ("j" "j" transient-echo-arguments :transient t)
         ("k" "k" transient-echo-arguments :transient t)])))])

This nested, matrix-like, two-dimensional transient

Such layouts have to use the transient-columns group type, there is no other group type that supports more than one dimension.

When using :setup-children the class has to be specified but you picked th…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tarsius
Comment options

Answer selected by tarsius
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