Comments (4)
Thanks very much for such a quick fix! You're right, everything seems to be working now, even the controls
(in case I need to use it somewhere).
I have to say that so far I really like ngdoc and it's fantastic how quickly you're responding. Thanks again, if I run into any more problems I'll create another ticket. 🙂
from ng-doc.
In connection to this, I'd like some advice. Since the input signals weren't automatically recognized, I defined the controls manually in NgDocPlaygroundControlConfig.controls, but I failed to create a select control. Even though I used
'size': { type: 'string', options: ['s', 'm', 'l', 'xl'] }
it generated normal text input, not select. I tried several different definitions I could think of, but none succeeded.
Could you please advise me how to write it correctly so that I get a select control with options 's', 'm', 'l' and 'xl'?
from ng-doc.
Amazing research, thank you! I've fixed all the bugs you found, and I've also fixed the issue with the controls
field. Now everything should work fine.
About your question:
You should use the name of your type alias as the type
if you have it, because specifying the type as string
makes NgDoc create a control for managing string type:
'size': { type: 'Size', options: ['s', 'm', 'l', 'xl'] }
Or if for any reason you don't have a separate type, you can also specify the type as NgDocTypeAlias
, which is a general type used internally to manage all recognized type alias types that NgDoc can understand (this is not mentioned in the documentation, but I'll add an explanation later):
'size': { type: 'NgDocTypeAlias', options: ['s', 'm', 'l', 'xl'] }
from ng-doc.
🎉 This issue has been resolved in version 17.5.4 🎉
The release is available on:
v17.5.4
- GitHub release
Your semantic-release bot 📦🚀
from ng-doc.
Related Issues (20)
- [Feature] Remove Google Fonts HOT 4
- [Bug] ng-doc.routing.ts incorrect generated import HOT 10
- [Bug] input aliasing decorator selector not rendered correctly HOT 4
- [Feature] Support template variables for inputs HOT 11
- [Bug] hidden: true in NgDocPage-Config does not avoid displaying a component in the navigation. HOT 7
- [Bug] Table of contents link does not work properly with basehref HOT 4
- [Bug] Unable to leverage Keywords to create custom links in a reusable macro template HOT 8
- [Feature] Unable to leverage Custom Angular Components in the Markdown file HOT 3
- Support for Mermaid HOT 7
- [Bug] Unable to build docs when Playground refers components from angular library HOT 3
- [Bug] Extra /docs is introduced in the home icon of the breadcrumb during configuration of NgDoc route prefix HOT 4
- [Bug] Unable to display demo details of the components from angular library HOT 3
- [Query] Is it possible to import macros from angular library? HOT 4
- [Bug]Unable to customize the title of the API page HOT 1
- [Bug] The id of the html header is not serialized HOT 2
- Support for native i18n / $localize + localized markdown HOT 3
- [Feature] Demo Pane viewport and theme support
- [Feature] Custom Tabs in Demo HOT 4
- [Feature] Display Component Properties in Component Tabs and on Page
- [Bug] Configure Home icon route path of breadcrumb
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ng-doc.