question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Action footer component

See original GitHub issue

Summary

An action footer is a footer bar that contains commonly used actions in the form of pre-arranged buttons and hyperlinks. It can be used in multiple UI components, such as modal dialog, split views, popovers and cards.

Expected behavior

Should be able to give the component buttons/hyperlinks and specify their layout. If no action is passed in, render empty footer with 10px height

Responsiveness

On large screen size action items are horizontally positioned, while on small size they are stacked

React Props

Prop Type Default Description
start node actions to be displayed at the start side
center node actions to be displayed in the center
end node actions to be displayed at the end side

Themeable styles

background-color border-top

Example

<ActionFooter
  start={<Button text='cancel'/>}
  end={<div><Button text='save'/> <Button text='next'/></div>}
/>

<ActionFooter center={<a href='google.com'/>} />

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:17 (14 by maintainers)

github_iconTop GitHub Comments

2reactions
zhongyncommented, Feb 27, 2018

@dm123455 using start/end is within the consideration of bidi. Most of our style names and components are following this convention, such as arrange, slidepanel, dynamic-grid

1reaction
zhongyncommented, Feb 27, 2018

talked with UX/Brett in UX sync, the content passed in the footer will take care of the spacing between buttons itself and action footer is unopinionated on it

Read more comments on GitHub >

github_iconTop Results From Across the Web

Lightning Component Using QuickAction with Custom Header ...
In this blog post , i explained brief about Quick action in lightning components with an example. force:lightningQuickAction. force: ...
Read more >
Add button to the footer of a Lightning Quick Action component
As you said, you need either to put the button inside your component with force:lightningQuickAction , or recreate everything in a component ......
Read more >
Format Lightning Component Quick action with Custom ...
I have implemented force:QuickActionWithoutHeader because I need to have custom "save" and "cancel" buttons. However, the modal that pops up for ...
Read more >
Custom Header and Footer in Lightning Quick action
In this blog i am going to show you how you can create your custom header and footer in lightning quick action.
Read more >
Footer on Lightning Web Component - Picchiri
Practical example of how to build a footer in Lightning Web Component and inserting a call to action within it.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found