refactor(techdemo): scope card handles to partials
Move board card and lane actions onto their reusable partial templates, register the scoped generated handles directly, and remove hidden shell-level handle anchors and manual handle fields from the rendered view data. req: component/003 req: view/001 req: examples/001
This commit is contained in:
@@ -65,8 +65,4 @@
|
||||
</article>
|
||||
</section>
|
||||
|
||||
<button type="button" data-slhx-handle="advance_work" hidden="hidden">Advance</button>
|
||||
<button type="button" data-slhx-handle="delete_work" hidden="hidden">Delete</button>
|
||||
<button type="button" data-slhx-handle="spotlight_work" hidden="hidden">Spotlight</button>
|
||||
<button type="button" data-slhx-handle="move_to_lane" hidden="hidden">Move to lane</button>
|
||||
</main>
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
<header><strong>{+ self.title +}</strong><span class="pill">{+ self.stage +}</span></header>
|
||||
<div class="impact"><i +style="self.impact_style"></i></div>
|
||||
<div class="card-actions">
|
||||
<button type="button" +data-hid="self.spotlight_handle" +data-work-id="self.id">Inspect</button>
|
||||
<button type="button" +data-hid="self.advance_handle" +data-work-id="self.id">Advance</button>
|
||||
<button type="button" +data-hid="self.delete_handle" +data-work-id="self.id">Delete</button>
|
||||
<button type="button" data-slhx-handle="spotlight_work" +data-work-id="self.id">Inspect</button>
|
||||
<button type="button" data-slhx-handle="advance_work" +data-work-id="self.id">Advance</button>
|
||||
<button type="button" data-slhx-handle="delete_work" +data-work-id="self.id">Delete</button>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<section +class="self.class" +data-lane="self.lane_id" +data-hid="self.move_handle" data-slhx-on="drop">
|
||||
<section +class="self.class" +data-lane="self.lane_id" data-slhx-handle="move_to_lane" data-slhx-on="drop">
|
||||
<h3>{+ self.title +}</h3>
|
||||
<p>{+ self.description +}</p>
|
||||
<template h-for="card in &self.cards">
|
||||
|
||||
Reference in New Issue
Block a user