Showing posts with label Sidebar. Show all posts
Showing posts with label Sidebar. Show all posts
Monday, January 2, 2017
Visualforce - Beyond Basics Series 39 - Modern Upload Button
Traditionally, developers use the same styling of inputFile as it is. That means there will be an upload button for user to select the file & there has to be a commandButton/commandLink to call the action function.
But, in a modern Upload button solution, a Upload label will be styled as a Button. Then, the inputFile tag will be inside the label & hidden from user. So, user will see only Label(Button), not the acutal inputFile.
Labels:
action,
Advanced,
ajax,
Basic,
Buttons,
CSS,
Label,
Salesforce,
Sidebar,
Tutorial,
UI,
Visualforce
Tuesday, December 6, 2016
Visualforce - Beyond Basics Series 5 - App agnostic widgets in sidebar
Is there a customization section common to all Apps ?
Yes. Salesforce provides sidebar for this purpose. This sidebar is nothing but a collection of standard & custom components. Standard components include Create New, Recent Items, Tags, Custom Links, Recycle Bin.
What is allowed inside a sidebar component ?
you can have one of the following types for a component,- Links
- Image
- HTML
- Visualforce
How can we use visualforce ?
Most of the time one can use visualforce to build a sidebar component for one of 3 purposes,- Output Stats, Quotes, Reminders, Important messages etc
- Input a value from user & take action in Apex
- Set of links for Navigation
Where is the code ?
I have given code for illustrating all these use cases. To try this out,1) you need to create a new 'Custom Component' under Setup -> Home -> Home Page Components.
- with 'visualforce' type, height 200px, narrow type
- select the visualforce page (copy the code from below)
2) Then, you need to add this new component into current Home Page Layout.
Subscribe to:
Posts (Atom)
