[ Mobile / Desktop ] Create SfHero
See original GitHub issueShould use Glidejs to handle slide, take a look on SfGallery or SfCarousel as examples.
Proposed API
Props
{
/**
* List of banners:
* array of nested objects with format: `[{ image, title, subtitle, cta, route }]`
*/
banners: {
type: Array,
required: true
},
/**
* Glide slider options (https://glidejs.com/docs/options/)
*/
sliderOptions: {
type: Object,
default() {
return {
type: "slider",
autoplay: 8000,
rewind: true
};
}
}
}
On banner object, only image
(img src) should be required.
Slots
default
: the content itself, overwriting each banner image, should bindbanner
object;next
: next banner icon (arrow right by default), should bindisFirst
boolean;previous
: previous banner icon (arrow left by default), should bindisLast
boolean;bullets
: pagination bullets, should bindtotal
andcurrent
(numbers);
Events
this.$emit("click", banner.route);
Please mind that it’s just a proposal. We’re open to discussion regarding component API. 😁
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
[ Mobile / Desktop ] Create SfHero · Issue #149 - GitHub
On banner object, only image (img src) should be required. Slots. default : the content itself, overwriting each banner image, should bind ...
Read more >Add Website to Mobile Device Home Screen
Launch “Safari” app. · Enter into the address field the URL of the website you want to create a shortcut to. · Tap...
Read more >Using the Safari Browser to Access Canvas (Mobile/Desktop)
Click the Safari menu in the upper left corner of the screen and select "Preferences". Preferences.png. 2. Click the "Privacy" tab in the...
Read more >How to request desktop site on iPhone | BrowserStack
How to request a desktop site on the iPhone · Open the Safari browser and navigate to any website. · Once the website...
Read more >Saving Links to Desktop and Mobile Device Home Screen
1. Launch “Safari” app. This does not work from the “Chrome” app. 2. Enter into the address field the URL of the website...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@leomp12 I was just thinking more about copying some styles to have a quicker setup
@bahdcoder you’re right, thanks! I had forgotten the prop for glidejs options, I’ll edit the issue.