Skip to content

Commit 1a6b58e

Browse files
author
Gianluca Carnielli
committed
First commit
0 parents  commit 1a6b58e

File tree

75 files changed

+527
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+527
-0
lines changed

.gitattributes

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
*.fig binary
2+
*.mat binary
3+
*.mdl binary diff merge=mlAutoMerge
4+
*.mdlp binary
5+
*.mexa64 binary
6+
*.mexw64 binary
7+
*.mexmaci64 binary
8+
*.mlapp binary
9+
*.mldatx binary
10+
*.mlproj binary
11+
*.mlx binary
12+
*.p binary
13+
*.sfx binary
14+
*.sldd binary
15+
*.slreqx binary merge=mlAutoMerge
16+
*.slmx binary merge=mlAutoMerge
17+
*.sltx binary
18+
*.slxc binary
19+
*.slx binary merge=mlAutoMerge
20+
*.slxp binary
21+
22+
## Other common binary file types
23+
*.docx binary
24+
*.exe binary
25+
*.jpg binary
26+
*.pdf binary
27+
*.png binary
28+
*.xlsx binary

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# List of untracked files to ignore

Example.mlx

194 KB
Binary file not shown.

IconAlign.m

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
classdef IconAlign
2+
%ICONALIGN Button icon alignment.
3+
%
4+
% Copyright 2023 The MathWorks, Inc.
5+
6+
enumeration
7+
left ("left")
8+
leftmargin ("left-margin")
9+
right ("right")
10+
rightmargin ("right-margin")
11+
top ("top")
12+
bottom ("bottom")
13+
end % enumeration
14+
15+
properties (SetAccess = immutable)
16+
Name
17+
end % properties (SetAccess = immutable)
18+
19+
methods
20+
function obj = IconAlign(in)
21+
obj.Name = in;
22+
end % constructor
23+
end % methods
24+
end % classdef

Jsbutton.prj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<MATLABProject xmlns="http://www.mathworks.com/MATLABProjectFile" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0"/>

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# JavaScript Button
2+
3+
Version: 1.0
4+
5+
This custom UI component creates a button that is customizable in several additional ways with respect to the built-in ``uibutton`` component in MATLAB. Additional customizations can be addeed with CSS and JavaScript. This custom component can be included inside graphical user interfaces and be made available inside App Designer.
6+
7+
<img src="button_example.png" width="200">
8+
9+
## Example
10+
JavaScript buttons can be used on their own inside an app, or they can be used to create new composite components, such as a tab group, as shown below:
11+
12+
<img src="app_example.png" width="">
13+
14+
## How To Use It
15+
An overview of the component and instructions (with examples) on how to use it are found in ``Example.mlx``.
16+
17+

SECURITY.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Reporting Security Vulnerabilities
2+
3+
If you believe you have discovered a security vulnerability, please report it to
4+
[[email protected]](mailto:[email protected]). Please see
5+
[MathWorks Vulnerability Disclosure Policy for Security Researchers](https://www.mathworks.com/company/aboutus/policies_statements/vulnerability-disclosure-policy.html)
6+
for additional information.

TextAlign.m

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
classdef TextAlign
2+
%TEXTALIGN Button text alignment.
3+
%
4+
% Copyright 2023 The MathWorks, Inc.
5+
6+
enumeration
7+
left ("left")
8+
center ("center")
9+
right ("right")
10+
end % enumeration
11+
12+
properties (SetAccess = immutable)
13+
Name
14+
end % properties (SetAccess = immutable)
15+
16+
methods
17+
function obj = TextAlign(in)
18+
obj.Name = in;
19+
end % constructor
20+
end % methods
21+
end % classdef

TextFont.m

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
classdef TextFont
2+
%TEXTFONT Button text font.
3+
%
4+
% Copyright 2023 The MathWorks, Inc.
5+
6+
enumeration
7+
normal ("normal")
8+
bold ("bold")
9+
bolder ("bolder")
10+
lighter ("lighter")
11+
end % enumeration
12+
13+
properties (SetAccess = immutable)
14+
Name
15+
end % properties (SetAccess = immutable)
16+
17+
methods
18+
function obj = TextFont(in)
19+
obj.Name = in;
20+
end % constructor
21+
end % methods
22+
end % classdef

app_example.png

95.4 KB
Loading

0 commit comments

Comments
 (0)