You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
Is your feature request related to a problem? Please describe. carbon-graphs uses carbon-site-helpers to generate its demo site. When you take a look at the examples on the carbon-graphs demo site you don't know what code was written to generate that example. It will be a very nice feature if there was a way to see what Carbon API's were used. This will way it can help consumers take a direct look at the code instead of hunting it down in the carbon-graphs repo.
Describe the solution you'd like
Below the breadcrumb add a CodeIcon to show the code used to generate the tab content. The carbon-site-helpers app config will expect consumers to send a new property for instance, code which should be a call back function returning a string. When the code icon is clicked, carbon site will execute the call back function and the returned string value will be embedded in a code editor. To begin with we will use the javascript editor.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Mock-ups
1. A code icon will appear above the file content. On hovering it will add a highlight to it.
2. Clicking the code icon
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
carbon-graphs
usescarbon-site-helpers
to generate its demo site. When you take a look at the examples on thecarbon-graphs
demo site you don't know what code was written to generate that example. It will be a very nice feature if there was a way to see what Carbon API's were used. This will way it can help consumers take a direct look at the code instead of hunting it down in thecarbon-graphs
repo.Describe the solution you'd like
Below the breadcrumb add a CodeIcon to show the code used to generate the tab content. The carbon-site-helpers app config will expect consumers to send a new property for instance,
code
which should be a call back function returning astring
. When thecode icon
is clicked, carbon site will execute the call back function and the returnedstring
value will be embedded in a code editor. To begin with we will use thejavascript
editor.Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Mock-ups
1. A code icon will appear above the file content. On hovering it will add a highlight to it.
2. Clicking the code icon
The text was updated successfully, but these errors were encountered: