UR::Ob...Aspect(3pm)

πŸ“¦
version 0.470 Β· 2 versions
, in debian bookworm, ubuntu jammy, ubuntu noble

✨ NAME ✨

UR::Object::View::Aspect β€” bestie, it's literally a specification for one aspect of a view πŸ’… (that's the whole vibe, that's the manual name, we're not gatekeeping 🫢)


🌸 SYNOPSIS 🌸

okay so here's how you actually use it, no cap β€” you hand create_view a lil list of aspects and each one is either just a plain string (the easy route) or a full-on hashref with extra deets:

my $v = $o->create_view(
  perspective => 'default',
  toolkit => 'xml',
  aspects => [
    'id',
    'name',
    'title',
    {
       name => 'department',
       perspective => 'logo'
    },
    {
       name => 'boss',
       label => 'Supervisor',
       aspects => [
           'name',
           'title',
           {
             name => 'subordinates',
             perspective => 'graph by title'
           }
       ]
    }
  ]
);

see how the aspects list mixes bare strings and hashrefs? iconic behavior honestly πŸŽ€ and yes, aspects can nest inside aspects β€” boss has its own whole squad of name, title, and a subordinates sub-aspect riding along with perspective => 'graph by title' 🌈 it's giving recursive, it's giving main character energy, we love that for it πŸ’–


and that's the whole page, bestie πŸ’œ no boring epilogue, no hidden gotchas, we ate and left no crumbs πŸ“

courtesy of perl v5.32.1, dated 2022-01-17 β€” so this page is vintage but still serving 🧚 go forth and specify those aspects, mwah πŸ’…βœ¨
πŸ“¦ where this page comes from