<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Wang  Sunny on Medium]]></title>
        <description><![CDATA[Stories by Wang  Sunny on Medium]]></description>
        <link>https://medium.com/@wangsunny?source=rss-2cbf52d298df------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*-Rn_2X4g8xc6Lawz.</url>
            <title>Stories by Wang  Sunny on Medium</title>
            <link>https://medium.com/@wangsunny?source=rss-2cbf52d298df------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 16:12:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@wangsunny/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Vue fullcalendar component]]></title>
            <link>https://medium.com/@wangsunny/github-page-b98605491df0?source=rss-2cbf52d298df------2</link>
            <guid isPermaLink="false">https://medium.com/p/b98605491df0</guid>
            <category><![CDATA[vuejs]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[front-end-development]]></category>
            <dc:creator><![CDATA[Wang  Sunny]]></dc:creator>
            <pubDate>Wed, 20 Jul 2016 06:28:03 GMT</pubDate>
            <atom:updated>2016-07-21T08:19:02.296Z</atom:updated>
            <content:encoded><![CDATA[<p>Vue fullcalendar component</p><p><a href="https://github.com/Wanderxx/vue-fullcalendar">Github page</a></p><p><a href="http://g.recordit.co/vovteJ5m9o.gif">http://g.recordit.co/vovteJ5m9o.gif</a></p><p>So as it’s called. This is a fullCalendar component based on vue.js . No Jquery or fullCalendar.js required. Currently, It only supports month view. I will use fc stands for vue-fullcalendar in following words.</p><p>Feel free to download it,re-develop it and use in your project.</p><h3>install</h3><p>open your project and run this command.</p><pre>npm install vue-fullcalendar</pre><p>just download this project from git</p><h3>demo</h3><p>You can directly visit the simple online <a href="http://wanderxx.github.io/fullcalendar">demo</a></p><p>switch you directory to this project, and run this command. Then go to your <a href="http://localhost:8080/">http://localhost:8080</a></p><pre>npm install (NOTE : if you are in China mainland, cnpm install is more recommended.) </pre><pre>npm run dev</pre><p>If everything runs well. You should see this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1016/0*UTceg9KuIMxvpfMx." /></figure><p>In my project, I add eventCard and filter. So, I find this roof. You find your roof.</p><h3>import</h3><p>In your code , do as follow. Then you will be able to use this component.</p><pre>import fullcalendar from &#39;vue-fullcalendar&#39;</pre><h3>VUE-API</h3><p>Since fc is a vue-based component. I pre-defined some properties.</p><h4>VUE:props</h4><p>fc will receive some props from outside world.</p><ol><li>events: Events will be displayed on the calendar javascript events = [ { title : ‘event1’, start: ‘2016–07–01’， YOUR_DATA : {} }, { title : ‘event2’, start : ‘2016–07–02’, end : ‘2016–07–03’, YOUR_DATA : {} } ]</li></ol><h3>VUE:events</h3><p>When you do something, fc will dispatch some events out.</p><ol><li>‘changeMonth’ : Every time you click arrow to next/last month, fc will dispatch <strong>changeMonth</strong></li></ol><pre>this.$dispatch(&#39;changeMonth&#39;, start, end)</pre><p><strong>start</strong> is the first day of current monthView</p><p><strong>end</strong> is the last day of current monthView</p><ol><li>‘eventClick’ : Every time you click a event, fc will dispatch <strong>eventClick</strong></li></ol><pre>this.$dispatch(&#39;eventClick&#39;, event, jsEvent, pos)</pre><p><strong>event</strong> is an Event object hold the event’s information</p><p><strong>jsEvent</strong> holds the native javascript event</p><p><strong>pos</strong> is the relative coordinates of fc</p><ol><li>‘dayClick’ : fc dispatch it when you click a day slot.</li></ol><pre>this.$dispatch(&#39;eventClick&#39;, day, jsEvent)</pre><p><strong>day</strong> is a Date Object of the day you click</p><p><strong>jsEvent</strong> holds the native javascript event</p><h3>END</h3><p><em>Originally published at </em><a href="https://github.com/Wanderxx/vue-fullcalendar/blob/master/README.md"><em>github.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b98605491df0" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>