Skip to content

Commit e4907b9

Browse files
authoredMay 20, 2019
feat: simplify slots
1 parent c2eba4e commit e4907b9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+558
-437
lines changed
 

‎lib/documentation/templates/api-slots-section.js

+2-6
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module.exports = {
44
<h3 class="comment-api-title space-top" >Children</h3>
55
<p class="small-space-top" >
66
This Web Component accepts other HTML Elements as children.
7-
Use the <code>data-ui5-slot</code> attribute to define the category of each child, if more than one category is accepted.
7+
Use the <code>slot</code> attribute to define the category of each child, if more than one category is accepted.
88
You can provide multiple children for the categories marked with <code>[0..n]</code> or just one otherwise.
99
</p>
1010
@@ -24,9 +24,5 @@ module.exports = {
2424
{{/each}}
2525
2626
</div>
27-
{{/if}}
28-
{{#if usesTextContent}}
29-
<h3 class="comment-api-title space-top" >Children</h3>
30-
<p class="small-space-top" >The content of this Web Component is interpreted as text and shown to the user. All HTML Elements inside the Web Component are ignored - only their text is used.</p>
3127
{{/if}}`
32-
};
28+
};

‎lib/jsdoc/plugin.js

-9
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727
*
2828
* slot
2929
*
30-
* usestextcontent
31-
*
3230
* appenddocs
3331
*
3432
* customtag
@@ -2067,13 +2065,6 @@ exports.defineTags = function(dictionary) {
20672065
}
20682066
});
20692067

2070-
dictionary.defineTag('usestextcontent', {
2071-
mustNotHaveValue: true,
2072-
onTagged: function(doclet, tag) {
2073-
doclet.usestextcontent = true;
2074-
}
2075-
});
2076-
20772068
dictionary.defineTag('appenddocs', {
20782069
mustHaveValue: false,
20792070
onTagged: function(doclet, tag) {

0 commit comments

Comments
 (0)