npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

largridview

v1.0.13

Published

A simple package to view the data table on Vue with the Laravel web framework. Easy to configure and easy to operate. The main task of the grid package takes on. You do the rest.

Downloads

5

Readme

Package LarGridView

LarGridView package for working with grid view in Laravel with Vue.js

A simple package to view the data table on Vue with the Laravel web framework. Easy to configure and easy to operate. The main task of the grid package takes on. You do the rest.

Installation

npm install largridview

Usage

  import Vue from 'vue'
  
  import * as LarGridView from 'largridview'
  Vue.use(LarGridView)

...

  <LarGridView :url="'api/all'"
        :fields="[{width: '10%', name: 'id', label: '', isSort: true}, {width: null, name: 'action', label: 'Actions', isAction: true}]"
        @response="onResponse"
        :isBusy="loadingSendingStatus"
        sort-key='id'>
        <tr v-for="(item, index) in items" :key="index">
            ...
        </tr>
  </LarGridView>

Props

Stack

| Name | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | url | String | Yes | '/' | URL to get the required data. If the line is empty, then data will not be sent. | | fields | Array | Yes | [] | Fields to display. Example: [{width: '10%', name: 'id', label: '', isSort: true}, {width: null, name: 'action', label: 'Actions', isAction: true}]. | | dataPath | String | No | data.list | The path to receiving data from a pagination request response. | | data | Object | No | {} | It is necessary in cases when you need to control some data for sending. | | isSend | Boolean | No | true | Enable automatic data sending. | | isBusy | Boolean | No | false | Loading data into a table. | | isLoadingOn | Boolean | No | true | Enable basic data loading. | | isSearch | Boolean | No | false | Enable table search. | | isPerPageOn | Boolean | No | true | Enable selection of the number of table rows per page. | | isPaginateOn | Boolean | No | true | Enable pagination. | | isPaginateSimple | Boolean | No | false | Simple pagination. | | isPaginateAuto | Boolean | No | true | Enable automatic pagination detection - simple pagination or not. | | sortKey | String | No | null | Default Sort Column. | | perPage | Array | No | [20, 50, 100, 200] | The number of rows for the table. | | perPageDefault | Number | No | 20 | Default row count for table. | | idTable | String | No | tableID | Table id for better control. | | classTable | String | No | | Class for the table itself. | | `classBlock` | String | No | | Class for the block itself. | | placeholderFilterSearch | String | No | Search... | Placeholder for search input. | | textFromTo | String | No | Showing :from to :to | | | textTotal | String | No | of :total | | | textNext | String | No | Next › | | | textPrev | String | No | ‹ Prev | | | paginateDeltaLeft | Number | No | 2 | The number of pages to the left of the current page. | | paginateDeltaRight | Number | No | 2 | The number of pages to the right of the current page. |

Events

| Name | Type | Description | | --- | --- | --- | | loading | Boolean | Data load status change event. | | response | Object | Event when receiving data from the server. | | filter:select | Number | The event of selecting the number of lines displayed on the page. | | filter:sort | Object | Column sort selection event. | | filter:search | String | The event of entering text into the search string. | | page:select | String | The event of clicking on the pagination button on. | | page:next | String | Pagination forward button click event. | | page:prev | String | Pagination back button click event. |