-
Notifications
You must be signed in to change notification settings - Fork 13
Documentation(EJ2-1014442): Documentation Improvement - User Guide Enhancement #2366
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
NITHISHKUMARRAVIKUMAR
wants to merge
21
commits into
development
Choose a base branch
from
EJ2-1014442-ug
base: development
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+2,061
−9
Open
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
e11b9e3
1014442: added contents for open/save in json
Nithishk1 fbc8333
1014442: Updated contents for open/save in json
Nithishk1 c26abd7
Merge branch 'development' of https://github.com/syncfusion-content/d…
Nithishk1 7fcbd13
1014442: Updated contents for open/save in json
Nithishk1 9898de0
1014442: Updated contents for open/save in json
Nithishk1 6580d7d
1014442: added paste values without formatting content in how to session
Nithishk1 b223d3f
Merge branch 'development' of https://github.com/syncfusion-content/d…
Nithishk1 a73309d
Merge branch 'development' of https://github.com/syncfusion-content/d…
Nithishk1 7a4c03d
1014442: modified content in open/save json for how to session
Nithishk1 a521c08
1014442: modified content in open/save json for how to session
Nithishk1 9a5cca6
1014442: modified content in open/save json for how to session
Nithishk1 ac6be5b
1014442: modified content and samples in open/save json for how to se…
Nithishk1 aeeeb43
Merge branch 'development' into EJ2-1014442-ug
NITHISHKUMARRAVIKUMAR 3466818
Merge branch 'development' of https://github.com/syncfusion-content/d…
Nithishk1 f91ecd9
1014442: modified content and samples for how to session
Nithishk1 7570f65
Merge branch 'development' of https://github.com/syncfusion-content/d…
Nithishk1 ffb7356
Merge branch 'development' into EJ2-1014442-ug
NITHISHKUMARRAVIKUMAR 0c656ef
Merge branch 'EJ2-1014442-ug' of https://github.com/syncfusion-conten…
Nithishk1 d25310b
1014442: modified content and samples in open/save json for how to se…
Nithishk1 0807ed4
Merge branch 'development' of https://github.com/syncfusion-content/d…
Nithishk1 8df96df
1014442: Correct capitalization in TOC link text
babu-periyasamy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
...ocessing/Excel/Spreadsheet/React/how-to/paste-only-values-without-formatting.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| --- | ||
| layout: post | ||
| title: Paste Without Formatting in React Spreadsheet component | Syncfusion | ||
| description: Learn here about Paste only values without formatting during copy and paste in Syncfusion React Spreadsheet component of Syncfusion Essential JS 2 and more. | ||
| control: Spreadsheet | ||
| platform: document-processing | ||
| documentation: ug | ||
| --- | ||
|
|
||
| # Paste Values Without Formatting and styles in React Spreadsheet | ||
|
|
||
| In the Syncfusion React Spreadsheet, you can make the paste action insert only the raw values into the cells, without bringing any formatting or styles from the copied content. This can be done by using the [actionBegin](https://ej2.syncfusion.com/react/documentation/api/spreadsheet/index-default#actionbegin) event, where the Spreadsheet provides the details of the action being performed. When the action is a clipboard operation, you can set the paste type to Values, ensuring that only plain values are pasted into the sheet. | ||
|
|
||
| The following example shows how to paste values without formatting. | ||
|
|
||
| {% tabs %} | ||
| {% highlight js tabtitle="app.jsx" %} | ||
| {% include code-snippet/spreadsheet/react/paste-values-cs1/app/app.jsx %} | ||
| {% endhighlight %} | ||
| {% highlight ts tabtitle="app.tsx" %} | ||
| {% include code-snippet/spreadsheet/react/paste-values-cs1/app/app.tsx %} | ||
| {% endhighlight %} | ||
| {% highlight js tabtitle="datasource.jsx" %} | ||
| {% include code-snippet/spreadsheet/react/paste-values-cs1/app/datasource.jsx %} | ||
| {% endhighlight %} | ||
| {% highlight ts tabtitle="datasource.tsx" %} | ||
| {% include code-snippet/spreadsheet/react/paste-values-cs1/app/datasource.tsx %} | ||
| {% endhighlight %} | ||
| {% endtabs %} | ||
|
|
||
| {% previewsample "/document-processing/code-snippet/spreadsheet/react/paste-values-cs1" %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
Document-Processing/code-snippet/spreadsheet/react/open-from-json-cs1/app/app.jsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| import * as React from 'react'; | ||
| import { createRoot } from 'react-dom/client'; | ||
| import { SpreadsheetComponent } from '@syncfusion/ej2-react-spreadsheet'; | ||
| import { jsonData } from './datasource'; | ||
|
|
||
| function App() { | ||
| const spreadsheetRef = React.useRef(null); | ||
|
|
||
| const handleOpenFromJson = React.useCallback(() => { | ||
| if (!spreadsheetRef.current) return; | ||
| spreadsheetRef.current.openFromJson({ file: jsonData }); | ||
| }, []); | ||
|
|
||
| return ( | ||
| <div className="control-pane"> | ||
| <div className="control-section spreadsheet-control"> | ||
| <div style={{ padding: '8px 0' }}> | ||
| <button className="e-btn e-primary" onClick={handleOpenFromJson}> | ||
| Load workbook JSON | ||
| </button> | ||
| </div> | ||
| <div> | ||
| <SpreadsheetComponent id="spreadsheet" ref={spreadsheetRef} /> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| ); | ||
| } | ||
|
|
||
| export default App; | ||
|
|
||
| const root = createRoot(document.getElementById('root')); | ||
| root.render(<App />); |
33 changes: 33 additions & 0 deletions
33
Document-Processing/code-snippet/spreadsheet/react/open-from-json-cs1/app/app.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| import * as React from 'react'; | ||
| import { createRoot } from 'react-dom/client'; | ||
| import { SpreadsheetComponent } from '@syncfusion/ej2-react-spreadsheet'; | ||
| import { jsonData } from './datasource'; | ||
|
|
||
| function App(): React.ReactElement { | ||
| const spreadsheetRef = React.useRef<SpreadsheetComponent | null>(null); | ||
|
|
||
| const handleOpenFromJson = React.useCallback((): void => { | ||
| if (!spreadsheetRef.current) return; | ||
| spreadsheetRef.current.openFromJson({ file: jsonData }); | ||
| }, []); | ||
|
|
||
| return ( | ||
| <div className="control-pane"> | ||
| <div className="control-section spreadsheet-control"> | ||
| <div style={{ padding: '8px 0' }}> | ||
| <button className="e-btn e-primary" onClick={handleOpenFromJson}> | ||
| Load workbook JSON | ||
| </button> | ||
| </div> | ||
| <div> | ||
| <SpreadsheetComponent id="spreadsheet" ref={spreadsheetRef} /> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| ); | ||
| } | ||
|
|
||
| export default App; | ||
|
|
||
| const root = createRoot(document.getElementById('root')!); | ||
| root.render(<App />); |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.