37 Commits

Author SHA1 Message Date
Mirko Covizzi
a4cfc7f930 Fix typo (#185) 2020-05-24 21:36:55 +02:00
Daisuke Kato
7a82e71033 todo example with vuejs+parcel (#159)
* add todo example using vuejs

* refactor by using vue component

* fix wrapper class name

* switch vue library in production and runtime-only lib

* remove arrow function expressions that breaks to work with IEs

* adD SAMple index.html for todo-vue

* use bundler (parcel)

* update

* support addTask

* update

* update

* use scoped style

* refactor
2020-03-27 00:55:01 +01:00
zxey
8f1f391a92 Apply rustfmt 2020-03-15 02:30:46 +01:00
zxey
6006b7386d Deprecate dialogs
Uses tinyfiledialogs to implement dialog functions on webview.
Removes original implementation.
Converts all examples that use dialogs to use tinyfiledialogs directly.

Note:
Your code will still work as it is, you will only get deprecation warnings,
you should eventually switch to tinyfiledialogs or some other crate for handling dialogs.
2020-03-13 00:36:06 +01:00
Robert Masen
8dec22b7e6 windows pass at frameless 2020-02-26 21:21:14 +01:00
rfm
17385b8b38 first pass at frameless 2020-02-26 21:21:14 +01:00
zxey
03394d6815 Apply rustfmt formatting
Also removes custom rustfmt.toml and uses the tools' defaults.
2020-02-23 19:20:30 +01:00
Daniel
e5fc5b97db Addition to examples directory 2020-02-23 19:17:19 +01:00
Daniel
581dfbe7b7 Add existing file 2020-02-23 19:17:19 +01:00
zxey
3f0bca943c Add info, warning and error to dialog example 2019-12-24 15:25:09 +01:00
Robert Masen
b664974c1b Allow for graceful Exit (#107)
* First pass at graceful exit

* Working macos unified exit

* fix example html to work with IE

* terminate > exit

* unified edge, I think

* update gtk c impl

* tag terminate as depricated

* fix old fn name

* remove OleUninitialize from edge

* remove queue_close

* remove terminate

* fix typo in edge cpp file

* inspect return value of graceful exit example

* actually create the variable inspected

* make example run a little faster

* Adjust cocoa webveiw_exit

* add back missing method on edge

* lots of pinting

* fix printf arg

* better even debug printing

* clean up debugging stuff

* remove some unneeded changes

* slow down example

* fix view title

* add comment about posting the event to the application on close

Closes #105 
Fixes #52
2019-12-28 14:27:12 +01:00
zxey
d3ba96f03e Add multi window example 2019-12-26 18:35:05 +01:00
zxey
ef6012bf61 Add color change example
This shows how to use WebView::set_color
2019-12-24 01:23:03 +01:00
zxey
026a763175 Add missing save file dialog
Fixes #101
2019-12-23 02:14:04 +01:00
zxey
b5ca004dde Fix wrong example title 2019-12-23 01:39:59 +01:00
zxey
dea84e6456 Add two minimal examples
fullscreen - shows two buttons for entering and exiting fullscreen mode
title_change - show text input that changes windows title as you type
2019-12-23 01:37:27 +01:00
Stephan Dilly
712aa082f9 include yew example source and instructions 2019-11-14 13:12:42 +01:00
Stephan Dilly
b6cdccfde3 added yew todo example 2019-11-14 13:12:42 +01:00
zxey
b31e61091c Add elm example 2019-11-03 00:10:00 +01:00
zxey
7e32701b53 Add EdgeHTML notes to READMEs 2019-09-29 11:43:26 +02:00
zxey
960aed804a Add actix embed example
Fixes #53
2019-09-25 15:16:18 +02:00
Sam Green
4e7378a653 Add fluent dialog API with example. 2018-11-22 20:52:35 +00:00
Sam Green
8a5d2dda0d Implement run method for builder. Use in examples. 2018-11-22 20:52:35 +00:00
Sam Green
09f403fd93 Use convenience builder function in examples. 2018-11-22 20:52:35 +00:00
Sam Green
d5f9f284e3 Rewrite to use builder pattern. Fix dispatch unsafety. (#36)
* Major rewrite.

- Fix unsafety (require 'static bound on dispatched closure)
- Switch to builder pattern.
- Run rustfmt
- Fix clippy warnings
- Userdata borrowed from webview instead of being arg of dispatch closure
- Bump minor version
- Update webview
- Add crate-level doc

* Add rustfmt.toml

* Allow propagation of errors from invoke and dispatch closures.

* Refine doc comments.

* Add enum derives.

* Remove mut bound from `handle()`.

* Remove dependency on failure.
2018-11-10 20:16:12 +00:00
Julian Pistorius
e81f0c397c Problem: No Elm example
Solution: Add simple Elm 'counter' example

Elm counter example copied from https://github.com/evancz/guide.elm-lang.org
2018-08-28 21:31:53 -07:00
Aaron Weiss
8f5caf2db6 Add support for webview_set_title and use it in todo example. 2018-07-12 10:23:19 +02:00
Aaron Weiss
db9e4babc5 Add support for webview_set_color and use it in todo example. 2018-07-11 22:00:54 +02:00
zxey
69519d102b Implement Content enum
Content enum allows us to pass url or html content easily to webview
without the need to encode the passed string beforehand.
2018-04-08 02:44:46 +02:00
Paweł Zmarzły
f971baecbb make timer example less confusing by renaming one of userdata variables 2018-02-03 19:25:37 +01:00
Boscop
49846c9dea made init callback FnOnce and dispatch callback generic over WebView lifetime
(uses webview.h from zserge/webview#5a16d33)
2018-02-01 16:14:28 +01:00
Boscop
35db78e04f added examples/todo-ps/dist/bundle.html so that the example builds out of the box 2018-01-23 00:12:33 +01:00
Boscop
fe545f23ce use new package name for repo 2018-01-22 00:07:03 +01:00
Boscop
d059d895dc renamed package to web-view because of naming conflict 2018-01-21 23:37:27 +01:00
Boscop
82599e65d6 simplify examples by using urlencoding::encode(html) instead of url::percent_encoding::utf8_percent_encode(html, PATH_SEGMENT_ENCODE_SET) 2018-01-21 13:27:16 +01:00
Boscop
46d4162bee untracked ps build output folder 2018-01-21 07:52:57 +01:00
Boscop
450b215f2c import 2018-01-21 07:36:31 +01:00