Rating (App Component)
                    Version 1.0.1 (44,8 KB) von  
                  Eivind Hennestad
                
                
                  An app component for giving a rating (stars)
                
                  
              Summary
An app component for giving ratings (stars or custom icons).
Examples
Example 1: Place rating widget in a uifigure
f1 = uifigure();
comp = Rating(f1);
comp.Position = [100,100,125,25];
Example 2: Place rating widget in a uigrid where it is centered in the figure
f2 = uifigure();
h = uigridlayout(f2);
h.ColumnWidth = {'1x', 125, '1x'};
h.RowHeight = {'1x', 25, '1x'};
comp = Rating(h);
comp.Layout.Column = 2;
comp.Layout.Row = 2;
h.BackgroundColor = 'w';
comp.BackgroundColor = h.BackgroundColor;
 Example 3: Create widget with custom property values
f3 = uifigure();
comp = Rating(f3, ...
    'NumStars', 6, ...
    'Tooltips',  ["Very Poor", "Poor", "Fair", "Good", "Very Good", "Excellent"], ...
    'IconOn', fullfile(matlabroot, "toolbox", "images", "icons", "CreateMask_24px.png"), ...
    'IconOff', fullfile(matlabroot, "toolbox", "images", "icons", "failed_24.png" ) );
Zitieren als
Eivind Hennestad (2025). Rating (App Component) (https://de.mathworks.com/matlabcentral/fileexchange/166231-rating-app-component), MATLAB Central File Exchange. Abgerufen.
Kompatibilität der MATLAB-Version
              Erstellt mit
              R2024a
            
            
              Kompatibel mit allen Versionen
            
          Plattform-Kompatibilität
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
rating_component
| Version | Veröffentlicht | Versionshinweise | |
|---|---|---|---|
| 1.0.1 | Background color is adapted based on background color of parent component | ||
| 1.0.0 | 
