Comments (13)
Thanks for reporting! I've added support for latest Framework7 version in the latest release of 3.0.9. Can you check if this fixes the problem for you? https://www.npmjs.com/package/f7-welcomescreen
from framework7-plugin-welcomescreen.
Sure, Let me check.
from framework7-plugin-welcomescreen.
Thanks for reporting! I've added support for latest Framework7 version in the latest release of 3.0.9. Can you check if this fixes the problem for you? https://www.npmjs.com/package/f7-welcomescreen
No, it's not working. In both Framework7 core and react versions. I tried as you describe here:- https://www.npmjs.com/package/f7-welcomescreen
from framework7-plugin-welcomescreen.
Thanks, can you provide some sample code (or your project code) so I can reproduce the problem?
from framework7-plugin-welcomescreen.
Thanks, can you provide some sample code (or your project code) so I can reproduce the problem?
sure
from framework7-plugin-welcomescreen.
Thanks, can you provide some sample code (or your project code) so I can reproduce the problem?
Framework7 Core version:- Main file: app.js
import $ from 'dom7';
import Framework7 from './framework7-custom.js';
// Import F7 Styles
import '../css/framework7-custom.less';
// Import Icons and App Custom Styles
import '../css/icons.css';
import '../css/app.less';
// import Template7 from 'template7';
import F7WelcomescreenPlugin from 'f7-welcomescreen';
// Import Routes
import routes from './routes.js';
// Import Store
import store from './store.js';
// Import main app component
import App from '../app.f7';
// Framework7.use(Template7);
var welcomescreen_slides = [
{
id: 'slide0',
title: 'Slide 0', // optional
picture: '
text: 'Welcome to this tutorial. In the next steps we will guide you through a manual that will teach you how to use this app.'
},
{
id: 'slide1',
title: 'Slide 1', // optional
picture: '
text: 'This is slide 2'
},
{
id: 'slide2',
title: 'Slide 2', // optional
picture: '
text: 'This is slide 3'
},
{
id: 'slide3',
//title: 'NO TITLE',
picture: '
text: 'Thanks for reading! Enjoy this app.
End Tutorial'
}
];
Framework7.use(F7WelcomescreenPlugin);
var options = {
'bgcolor': '#0da6ec',
'fontcolor': '#fff'
}
var app = new Framework7({
name: 'f7corecli', // App name
theme: 'auto', // Automatic theme detection
el: '#app', // App root element
component: App, // App main component
// App store
store: store,
// App routes
routes: routes,
welcomescreen: { // Setup welcomescreen plugin
slides: welcomescreen_slides,
options: options,
},
});
//FOR Testing Purpose, but F7-welcomescreen is not working here also.
setTimeout(() => {
console.log(Fired after 2.5 Seconds.
);
app.dialog.alert(Test
, F7CLI
, () => {
console.log(Callback fired.
);
});
app.welcomescreen.open();
}, 2500);
from framework7-plugin-welcomescreen.
package.json file for Framework7 Core version:-
{
"name": "f7corecli",
"private": true,
"version": "1.0.0",
"description": "f7corecli",
"repository": "",
"license": "UNLICENSED",
"scripts": {
"start": "npm run dev",
"dev": "cross-env NODE_ENV=development vite",
"build": "cross-env NODE_ENV=production vite build",
"postinstall": "cpy ./node_modules/framework7-icons/fonts/. ./src/fonts/ && cpy ./node_modules/material-icons/iconfont/. ./src/fonts/"
},
"browserslist": [
"Android >= 7",
"IOS >= 11",
"Safari >= 11",
"Chrome >= 49",
"Firefox >= 31",
"Samsung >= 5"
],
"dependencies": {
"dom7": "^3.0.0",
"f7-welcomescreen": "^3.0.9",
"framework7": "^6.2.0",
"framework7-icons": "^5.0.3",
"material-icons": "^1.1.1",
"skeleton-elements": "^3.4.0",
"swiper": "^6.8.1",
"template7": "^1.4.2"
},
"devDependencies": {
"cpy-cli": "^3.1.1",
"cross-env": "^7.0.3",
"less": "^4.1.1",
"postcss-preset-env": "^6.7.0",
"rollup-plugin-framework7": "^1.1.0",
"vite": "^2.4.4"
}
}
from framework7-plugin-welcomescreen.
Bundler is vite
from framework7-plugin-welcomescreen.
Both projects, the core version and react version, are created with the help of framework7-cli. It has nothing special except f7-welcomescreen. Not a single outside package.
from framework7-plugin-welcomescreen.
Hm, did you add this to your css?
Vite
@import 'f7-welcomescreen/styles.css';
Webpack
@import '~f7-welcomescreen/styles.css';
I have also attached a minimal example project using F7 Core version. It's based on plain css and Vite: Download example project
To use it just:
- Download
- Unzip
$ cd wtest
$ yarn
$ yarn start
I only changed file src/css/app.css
and src/js/app.js
. Hope this helps 🙂
from framework7-plugin-welcomescreen.
Sure. Sorry for the delayed response. Let me check.
from framework7-plugin-welcomescreen.
It's working fine now.
from framework7-plugin-welcomescreen.
Hm, did you add this to your css?
Vite
@import 'f7-welcomescreen/styles.css';
Webpack
@import '~f7-welcomescreen/styles.css';
I have also attached a minimal example project using F7 Core version. It's based on plain css and Vite: Download example project
To use it just:
- Download
- Unzip
$ cd wtest
$ yarn
$ yarn start
I only changed file
src/css/app.css
andsrc/js/app.js
. Hope this helps 🙂
Thank you
from framework7-plugin-welcomescreen.
Related Issues (20)
- Welcomescreen Not Close on Android HOT 3
- graceful exit *feature request* HOT 1
- F7/Phonegap/Vue: "Dom7 is undefined" HOT 2
- Error in V3 for Vue HOT 2
- Different Background Color for each slide HOT 1
- Dot navigation / # of slides HOT 1
- Does not work or load at all HOT 11
- Using framework7 components in the slides HOT 1
- Doesn't work with Framework7 v4.3.0 HOT 3
- not setting f7params.welcomescreen shows an empty screen HOT 2
- closing animation - how can this be achieved? HOT 4
- Using iOS fullscreen, leaves a gap HOT 1
- UglifyJS has trouble HOT 2
- welcomescreen.js: Line 185 : Uncaught TypeError: swiper.destroy is not a function HOT 8
- Pagination: Bullets colour - unable to change HOT 3
- navigation arrows HOT 1
- Not Working on Framework7 V6 Vue
- Not workin on Framework7 V6 Vue HOT 1
- Not working with [email protected] & VueJS & SCSS HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from framework7-plugin-welcomescreen.