-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
96 additions
and
52 deletions.
There are no files selected for viewing
This file contains 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
49 changes: 15 additions & 34 deletions
49
examples/demo/newfeatures.html → examples/demo/NewFeatures.tsx
This file contains 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 |
---|---|---|
@@ -1,63 +1,44 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
import * as React from "react"; | ||
|
||
<head> | ||
<meta http-equiv='Content-type' content='text/html; charset=utf-8'> | ||
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400&display=swap" rel="stylesheet"> | ||
<link id="page-stylesheet" rel="stylesheet" href="gray.css" /> | ||
<style> | ||
body { | ||
overflow: auto; | ||
} | ||
ul { | ||
margin-right: 1em; | ||
} | ||
li { | ||
margin-bottom: 1em; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
|
||
<ul> | ||
export function NewFeatures() { | ||
return ( | ||
<ul> | ||
<li> | ||
Help text (tooltip) option on tabs: <br> | ||
Help text (tooltip) option on tabs: <br/> | ||
<small>Hover over this tab button</small> | ||
</li> | ||
<li> | ||
Action to close tabset:<br> | ||
Action to close tabset:<br/> | ||
<small>See added x button in this tabset</small> | ||
</li> | ||
<li> | ||
Intercept drag drop to allow dropping tabs into custom areas:<br> | ||
Intercept drag drop to allow dropping tabs into custom areas:<br/> | ||
<small>See Tab Storage tab</small> | ||
</li> | ||
<li> | ||
Allow narrow splitters with extended hit test areas:<br> | ||
Allow narrow splitters with extended hit test areas:<br/> | ||
<small>Uses the splitterExtra global attribute</small> | ||
</li> | ||
<li> | ||
Tab attributes: borderWidth, borderHeight to allow tabs to have individual sizes in borders:<br> | ||
Tab attributes: borderWidth, borderHeight to allow tabs to have individual sizes in borders:<br/> | ||
<small>Try the 'With border sizes' tab</small> | ||
</li> | ||
<li> | ||
Customize the drag rectangle using the callback property: onRenderDragRect <br> | ||
Customize the drag rectangle using the callback property: onRenderDragRect <br/> | ||
<small>In this layout all drag rectangles are custom rendered</small> | ||
</li> | ||
<li> | ||
New border attribute: enableAutoHide, to hide border if it has zero tabs:<br> | ||
New border attribute: enableAutoHide, to hide border if it has zero tabs:<br/> | ||
<small>Try moving all tabs from any of the borders</small> | ||
</li> | ||
<li> | ||
New onRenderFloatingTabPlaceholder prop:<br> | ||
New onRenderFloatingTabPlaceholder prop:<br/> | ||
<small>Popout one of the tabs to see the custom rendered placeholder</small> | ||
</li> | ||
<li> | ||
New onContextMenu prop:<br> | ||
New onContextMenu prop:<br/> | ||
<small>All tabs and tabsets in this layout have a custom context menu</small> | ||
</li> | ||
</ul> | ||
</body> | ||
|
||
</html> | ||
); | ||
} |
This file contains 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 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 |
---|---|---|
|
@@ -117,4 +117,9 @@ small { | |
|
||
li { | ||
color: #444; | ||
margin-bottom: 1em; | ||
} | ||
|
||
ul { | ||
margin-right: 1em; | ||
} |
This file contains 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 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 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 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 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.