Skip to content

Commit 10ef6d6

Browse files
committed
layout.Cube: getPlaneId() #6702
1 parent 9cee1e1 commit 10ef6d6

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/layout/Cube.mjs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,14 +285,24 @@ class Cube extends Card {
285285
super.applyRenderAttributes()
286286
}
287287

288+
/**
289+
* @returns {String}
290+
*/
291+
getPlaneId() {
292+
return this.id + '__plane'
293+
}
294+
295+
/**
296+
*
297+
*/
288298
nestVdom() {
289299
let me = this,
290300
{container} = me,
291301
{vdom} = container,
292302
{cn} = vdom;
293303

294304
vdom.cn = [
295-
{cls: ['neo-plane'], cn: [
305+
{cls: ['neo-plane'], id: me.getPlaneId(), cn: [
296306
{cls: ['neo-box'], cn}
297307
]}
298308
];

0 commit comments

Comments
 (0)