Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


                  <div id="main">
      <div id="selectbox" class="p20">
          <select id="shop_category" name="pref" v-model="selectCategory" class="form-control input-lg">
              <option value="">-</option>
              <option v-for="(item, index) in category" v-bind:value="">{{}}</option>
      <ul class="list-group drag p20">
        <draggable :list="filterItems" class="dragArea" >
            <li class="list-group-item"
              v-for="item, index in filterItems"


.normal {
  background-color: grey;
  min-height: 10px;
.sortable-chosen {
  opacity: 0.7;
.sortable-ghost {


                var items = [
    {no:1, name:'キャベツ', categoryNo:'1'},
    {no:2, name:'ステーキ', categoryNo:'2'},
    {no:3, name:'リンゴ', categoryNo:'3'},
    {no:4, name:'冷蔵庫', categoryNo:'4'},
    {no:5, name:'きゅうり', categoryNo:'1'},
    {no:6, name:'ハンバーグ', categoryNo:'2'},
    {no:7, name:'バナナ', categoryNo:'3'},
    {no:8, name:'PS4', categoryNo:'4'},
    {no:9, name:'トマト', categoryNo:'1'},
    {no:10, name:'チキン', categoryNo:'2'},
    {no:11, name:'いちご', categoryNo:'3'},
    {no:12, name:'電子レンジ', categoryNo:'4'},
    {no:13, name:'じゃがいも', categoryNo:'1'},
    {no:14, name:'ポーク', categoryNo:'2'},
    {no:15, name:'ぶどう', categoryNo:'3'},
    {no:16, name:'セガサターン', categoryNo:'4'},
var vm = new Vue({
    el: "#main",
    data: {
        filterItems: items.concat(),
            {no:1, name:'野菜'},
            {no:2, name:'肉'},
            {no:3, name:'果物'},
            {no:4, name:'その他'},
        selectCategory: ''
    watch: {
        selectCategory: function(newValue) {
            var self = this;

            // 初期化
            self.filterItems = items.concat();

            // フィルター
            if(newValue != '') {
                self.filterItems = items.filter(function (item) {
                    return (newValue == item.categoryNo);