Assets
Design
The Asset component represents a range of assets such as files, directories, questions, answers and comments.
- 01.03 Q4report.pdf1.87 mb
- 02/path/to Important stuff
- 1234 How do things work?
- 1234 Things work really well.
- Things work for me too!
- Speak for yourself
- User
- User Group
Configuration
Each Asset type shows information related to that type, eg. file name, number, format and size
The Asset name can be a link
The entire Asset can be disabled
Assets can be contained in an Asset List, for example to display a list of attachments.
Asset Lists can use subtle buttons to add actions, for example to remove a file from a list of files
Note
The Asset List should not be used for full file tree or document index views. Instead, use the Tree component.
Code
API: unstable
Example | Note | Code |
---|---|---|
standard text document.txt | File with icon and name |
|
01.02 numbered video document.mkv | File with icon, number and name |
|
01.03/usr/local/bin/ruby ruby1.87 mb | File with all attributes |
|
v0.8.0/usr/local/bin/psci purescript13.4 MB | Disabled file |
|
01 Important stuff | Directory |
|
02/path/to/Docs Important stuff24.3 gb | All directory attributes |
|
1234 How do things work? | Question with number and Author |
|
1234 Things work really well. | Answer with number and Author |
|
Things work for me too! | Comment with Author |
|
User | User |
|
User Group | User Group. If User Group colours are required, apply with inline CSS or a custom class. |
|
Asset List with buttons:
Asset List without buttons:
|
Asset list |
Asset lists are simple lists. Each list item enclose instances of Asset and (optionally) one or more Subtle Buttons:
|