Skip to content

Commit

Permalink
Merge pull request #2283 from telerik/move-new-kbs-to-docs
Browse files Browse the repository at this point in the history
chore(kbs): move kbs to the new docs folder
  • Loading branch information
bptodorova authored May 31, 2024
2 parents 2639362 + 1e8a6c9 commit 9df15e8
Show file tree
Hide file tree
Showing 17 changed files with 37 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ This can be achieved by implementing a custom editor tool which applies [text-de


{% meta id:index height:900 %}
{% embed_file editor-double-underilne/main.tsx preview %}
{% embed_file editor-double-underilne/app.tsx preview %}
{% embed_file editor-double-underilne/main.tsx %}
{% embed_file editor-double-underilne/doubleUnderlineTool.tsx %}
{% endmeta %}
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,6 @@ How can I apply different bullet styles to different indentation levels in the K
You can achieve this by adding a [style element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/style) to the iframe document that contains the required [list-style-type](https://www.w3schools.com/cssref/pr_list-style-type.php)

{% meta id:index height:330 %}
{% embed_file editor/editor-multilevel-list-styles/main.jsx preview %}
{% embed_file editor/editor-multilevel-list-styles/app.jsx preview %}
{% embed_file editor/editor-multilevel-list-styles/main.jsx %}
{% endmeta %}
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ How to set by default `target='_blank'` for all the urls present in editor?
This can be achieved by changing the default `target` value in the link mark implementation of the [Editor schema](https://www.telerik.com/kendo-react-ui/components/editor/schema/) and applying the new one:

{% meta id height:480 %}
{% embed_file editor/editor-set-default-target-blank/main.tsx preview %}
{% embed_file editor/editor-set-default-target-blank/app.tsx preview %}
{% embed_file editor/editor-set-default-target-blank/main.tsx %}
{% embed_file editor/editor-set-default-target-blank/content.ts %}
{% embed_file editor/editor-set-default-target-blank/schema-utils.ts %}
{% embed_file editor/editor-set-default-target-blank/schema.ts %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import * as React from 'react';
import * as ReactDOM from 'react-dom';

import { Editor } from '@progress/kendo-react-editor';
import doubleUnderlineTool from './doubleUnderlineTool';
Expand All @@ -18,4 +17,4 @@ const App = () => {
);
};

ReactDOM.render(<App />, document.querySelector('my-app'));
export default App;
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import * as React from 'react';
import { createRoot } from 'react-dom/client';
import App from './app'

const root = createRoot(document.querySelector('my-app'));
root.render(<App />);
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React, { useEffect } from 'react';
import ReactDOM from 'react-dom';
import { Editor, EditorTools } from '@progress/kendo-react-editor';

const {
Expand Down Expand Up @@ -107,4 +106,4 @@ const App = () => {
);
};

ReactDOM.render(<App />, document.querySelector('my-app'));
export default App;
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import * as React from 'react';
import { createRoot } from 'react-dom/client';
import App from './app'

const root = createRoot(document.querySelector('my-app'));
root.render(<App />);
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import {
Editor,
EditorMountEvent,
Expand Down Expand Up @@ -41,4 +40,4 @@ const App = () => {
);
};

ReactDOM.render(<App />, document.querySelector('my-app'));
export default App;
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import * as React from 'react';
import { createRoot } from 'react-dom/client';
import App from './app'

const root = createRoot(document.querySelector('my-app'));
root.render(<App />);
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import * as React from 'react';
import * as ReactDOM from 'react-dom';

import { RadialGauge } from '@progress/kendo-react-gauges';

const RadialGaugeComponent = () => {
const App = () => {
const [value, setValue] = React.useState(0);

React.useEffect(() => {
Expand Down Expand Up @@ -51,4 +50,4 @@ const RadialGaugeComponent = () => {
);
};

ReactDOM.render(<RadialGaugeComponent />, document.querySelector('my-app'));
export default App;
6 changes: 6 additions & 0 deletions docs/knowledge-base/examples/radialgauge/main.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import * as React from 'react';
import { createRoot } from 'react-dom/client';
import App from './app'

const root = createRoot(document.querySelector('my-app'));
root.render(<App />);
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,6 @@ How can I show the value of the RadialGauge in the center?
This can be achieved by rendering a custom label element with the value inside that is relatively positioned:

{% meta id height:480 %}
{% embed_file radialgauge/main.tsx preview %}
{% embed_file radialgauge/app.tsx preview %}
{% embed_file radialgauge/main.tsx %}
{% endmeta %}

0 comments on commit 9df15e8

Please sign in to comment.